MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / BenchmarkCPUProfilerOn

Function BenchmarkCPUProfilerOn

cpu_test.go:12–16  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

10)
11
12func BenchmarkCPUProfilerOn(b *testing.B) {
13 p := ProfilingFor(nil).CPUProfiler()
14 p.StartProfile()
15 benchmarkFunctionListener(b, p)
16}
17
18func BenchmarkCPUProfilerOff(b *testing.B) {
19 p := ProfilingFor(nil).CPUProfiler()

Callers

nothing calls this directly

Calls 4

ProfilingForFunction · 0.85
CPUProfilerMethod · 0.80
StartProfileMethod · 0.80

Tested by

no test coverage detected