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

Function CPUProfile

intra/tun2socks.go:468–470  ·  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 to outflightrecorder. If the flight recorder is not already running, it is started on-demand and stopped after. Returns the actual n

(outproffile, outflightrecorder string, durationSecs int32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

CPUProfileFunction · 0.92

Tested by

no test coverage detected