- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newProfBuf (0.14 sec)
-
src/runtime/tracecpu.go
} // Create new profBuf for CPU samples that will be emitted as events. // Format: after the timestamp, header is [pp.id, gp.goid, mp.procid]. trace.cpuLogRead[0] = newProfBuf(3, profBufWordCount, profBufTagCount) trace.cpuLogRead[1] = newProfBuf(3, profBufWordCount, profBufTagCount) // We must not acquire trace.signalLock outside of a signal handler: a // profiling signal may arrive at any time and try to acquire it, leading to
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/cpuprof.go
if cpuprof.on || cpuprof.log != nil { print("runtime: cannot set cpu profile rate until previous profile has finished.\n") unlock(&cpuprof.lock) return } cpuprof.on = true cpuprof.log = newProfBuf(1, profBufWordCount, profBufTagCount) hdr := [1]uint64{uint64(hz)} cpuprof.log.write(nil, nanotime(), hdr[:], nil) setcpuprofilerate(int32(hz)) } else if cpuprof.on { setcpuprofilerate(0) cpuprof.on = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.5K bytes - Viewed (0)