- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 265 for ktrace (0.17 sec)
-
src/internal/trace/internal/testgen/go122/trace.go
"os" "regexp" "strings" "internal/trace" "internal/trace/event" "internal/trace/event/go122" "internal/trace/raw" "internal/trace/version" "internal/txtar" ) func Main(f func(*Trace)) { // Create an output file. out, err := os.Create(os.Args[1]) if err != nil { panic(err.Error()) } defer out.Close() // Create a new trace. trace := NewTrace() // Call the generator.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0) -
internal/grid/trace.go
v := ctx.Value(TraceParamsKey{}) // Should match SingleHandler.Call checks. switch typed := v.(type) { case *MSS: trace.Path += typed.ToQuery() case map[string]string: m := MSS(typed) trace.Path += m.ToQuery() case *URLValues: trace.Path += typed.Values().Encode() case *NoPayload, *Bytes: trace.Path = fmt.Sprintf("%s?payload=%T", trace.Path, typed)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 01 05:17:37 UTC 2024 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/traces.go
semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" "k8s.io/apiserver/pkg/endpoints/request" tracing "k8s.io/component-base/tracing" ) // WithTracing adds tracing to requests if the incoming request is sampled func WithTracing(handler http.Handler, tp trace.TracerProvider) http.Handler { opts := []otelhttp.Option{ otelhttp.WithPropagators(tracing.Propagators()),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 15 01:42:42 UTC 2024 - 2.5K bytes - Viewed (0) -
cmd/http-tracer.go
op = strings.Replace(op, "ReadinessCheckHandler", "health.Readiness", 1) op = strings.Replace(op, "-fm", "", 1) return op } // If trace is enabled, execute the request if it is traced by other handlers // otherwise, generate a trace event with request information but no response. func httpTracerMiddleware(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:45:54 UTC 2024 - 6K bytes - Viewed (0) -
prow/lib.sh
function log() { echo -e "$(date_cmd -u '+%Y-%m-%dT%H:%M:%S.%NZ')\t$*" } # Trace runs the provided command and records additional timing information # NOTE: to avoid spamming the logs, we disable xtrace and re-enable it before executing the function # and after completion. If xtrace was never set, this will result in xtrace being enabled. # Ideally we would restore the old xtrace setting, but I don't think its possible to do that without also log-spamming
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 12:26:52 UTC 2024 - 8.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
_Assert: {"assert", 1, false, statement}, _Trace: {"trace", 0, true, statement}, } func defPredeclaredFuncs() { for i := range predeclaredFuncs { id := builtinId(i) if id == _Assert || id == _Trace { continue // only define these in testing environment } def(newBuiltin(id)) } } // DefPredeclaredTestFuncs defines the assert and trace built-ins.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
_Assert: {"assert", 1, false, statement}, _Trace: {"trace", 0, true, statement}, } func defPredeclaredFuncs() { for i := range predeclaredFuncs { id := builtinId(i) if id == _Assert || id == _Trace { continue // only define these in testing environment } def(newBuiltin(id)) } } // DefPredeclaredTestFuncs defines the assert and trace built-ins.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
src/cmd/trace/goroutinegen.go
package main import ( "internal/trace" ) var _ generator = &goroutineGenerator{} type goroutineGenerator struct { globalRangeGenerator globalMetricGenerator stackSampleGenerator[trace.GoID] logEventGenerator[trace.GoID] gStates map[trace.GoID]*gState[trace.GoID] focus trace.GoID filter map[trace.GoID]struct{} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 4.6K bytes - Viewed (0) -
src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc.go
b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning) b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack) b0.Event("ProcStart", trace.ProcID(1), testgen.Seq(1)) b0.Event("GoSyscallEndBlocked") // A running goroutine steals proc 0. b1 := g.Batch(trace.ThreadID(1), 0) b1.Event("ProcStatus", trace.ProcID(2), go122.ProcRunning) b1.Event("GoStatus", trace.GoID(2), trace.ThreadID(1), go122.GoRunning)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:15:28 UTC 2024 - 1.1K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/annotations-stress.go
t3.End() trace.Stop() t2.End() t0.End() } func do(ctx context.Context, k int) { trace.Log(ctx, "log", "before do") var t *trace.Task ctx, t = trace.NewTask(ctx, "do") defer t.End() trace.Log(ctx, "log2", "do") // Create a region and spawn more tasks and more workers. trace.WithRegion(ctx, "fanout", func() { for i := 0; i < k; i++ { go func(i int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0)