- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for nonResource (0.2 sec)
-
src/cmd/trace/gstate.go
"strings" ) // resource is a generic constraint interface for resource IDs. type resource interface { trace.GoID | trace.ProcID | trace.ThreadID } // noResource indicates the lack of a resource. const noResource = -1 // gState represents the trace viewer state of a goroutine in a trace. // // The type parameter on this type is the resource which is used to construct
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.9K bytes - Viewed (0) -
src/cmd/trace/gen.go
} // StackSample implements a stack sample event handler. It expects ev to be one such event. func (g *stackSampleGenerator[R]) StackSample(ctx *traceContext, ev *trace.Event) { id := g.getResource(ev) if id == R(noResource) { // We have nowhere to put this in the UI. return } ctx.Instant(traceviewer.InstantEvent{ Name: "CPU profile sample", Ts: ctx.elapsed(ev.Time()), Resource: uint64(id),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.5K bytes - Viewed (0)