- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for traceCPUSample (0.34 sec)
-
src/runtime/tracecpu.go
unlock(&trace.lock) trace.cpuBuf[gen%2] = nil }) } } // traceCPUSample writes a CPU profile sample stack to the execution tracer's // profiling buffer. It is called from a signal handler, so is limited in what // it can do. mp must be the thread that is currently stopped in a signal. func traceCPUSample(gp *g, mp *m, pp *p, stk []uintptr) { if !traceEnabled() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 8.7K bytes - Viewed (0) -
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)