- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for traceCPUSample (0.14 sec)
-
src/runtime/traceruntime.go
// until all Ms are observed to be outside of their seqlock critical section. // // Note: The seqlock is mutated here and also in traceCPUSample. If you update // usage of the seqlock here, make sure to also look at what traceCPUSample is // doing. seq := mp.trace.seqlock.Add(1) if debugTraceReentrancy && seq%2 != 1 { throw("bad use of trace.seqlock or tracer is reentrant") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 25.7K bytes - Viewed (0) -
src/runtime/proc.go
gprof := gp var mp *m var pp *p if gp != nil && gp.m != nil { if gp.m.curg != nil { gprof = gp.m.curg } mp = gp.m pp = gp.m.p.ptr() } traceCPUSample(gprof, mp, pp, stk[:n]) } getg().m.mallocing-- } // setcpuprofilerate sets the CPU profiling rate to hz times per second. // If hz <= 0, setcpuprofilerate turns off CPU profiling.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)