- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IncThreadStateCount (0.25 sec)
-
src/cmd/trace/threadgen.go
// running threads with running Ps. ctx.IncThreadStateCount(ctx.elapsed(start), traceviewer.ThreadStateRunning, 1) } if from.Executing() { start := ev.Time() viewerEv.Name = "proc stop" viewerEv.Ts = ctx.elapsed(start) // TODO(mknyszek): We don't have a state machine for threads, so approximate // running threads with running Ps. ctx.IncThreadStateCount(ctx.elapsed(start), traceviewer.ThreadStateRunning, -1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/trace/procgen.go
viewerEv.Arg = format.ThreadIDArg{ThreadID: uint64(ev.Thread())} viewerEv.Ts = ctx.elapsed(start) ctx.IncThreadStateCount(ctx.elapsed(start), traceviewer.ThreadStateRunning, 1) } if from.Executing() { start := ev.Time() viewerEv.Name = "proc stop" viewerEv.Ts = ctx.elapsed(start) ctx.IncThreadStateCount(ctx.elapsed(start), traceviewer.ThreadStateRunning, -1) // Check if this proc was in a syscall before it stopped.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.1K bytes - Viewed (0) -
src/internal/trace/traceviewer/emitter.go
Runnable: uint64(e.gstates[GRunnable]), GCWaiting: uint64(e.gstates[GWaitingGC]), }, }) } e.prevGstates = e.gstates } func (e *Emitter) IncThreadStateCount(ts time.Duration, state ThreadState, delta int64) { e.threadStats[state] += delta if e.prevThreadStats == e.threadStats { return } if e.tsWithinRange(ts) { e.OptionalEvent(&format.Event{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:29:58 UTC 2023 - 20.4K bytes - Viewed (0)