MCPcopy Create free account
hub / github.com/celzero/firestack / CPUProfile

Function CPUProfile

intra/core/prof.go:43–86  ·  view source on GitHub ↗

CPUProfile starts a program-wide CPU profiler for durationSecs seconds (clamped to [10, 120]). The CPU profile is written to outproffile, and the flight recorder trace is written to outflightrecorder. The CPU sampling rate is hardcoded to 100 Hz by runtime/pprof.StartCPUProfile. If the flight recor

(outproffile, outflightrecorder string, durationSecs int32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CPUProfileFunction · 0.92

Calls 6

WFunction · 0.92
IFunction · 0.92
RecordingFunction · 0.85
RecordFunction · 0.85
CloseFileFunction · 0.85
maybeWriteTraceFunction · 0.85

Tested by

no test coverage detected