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

Method CPUProfiler

wzprof.go:100–102  ·  view source on GitHub ↗

CPUProfiler constructs a new instance of CPUProfiler using the given time function to record the CPU time consumed.

(options ...CPUProfilerOption)

Source from the content-addressed store, hash-verified

98// CPUProfiler constructs a new instance of CPUProfiler using the given time
99// function to record the CPU time consumed.
100func (p *Profiling) CPUProfiler(options ...CPUProfilerOption) *CPUProfiler {
101 return newCPUProfiler(p, options...)
102}
103
104// MemoryProfiler constructs a new instance of MemoryProfiler using the given
105// time function to record the profile execution time.

Callers 4

BenchmarkCPUProfilerOnFunction · 0.80
BenchmarkCPUProfilerOffFunction · 0.80
TestCPUProfilerTimeFunction · 0.80
runMethod · 0.80

Calls 1

newCPUProfilerFunction · 0.85

Tested by 3

BenchmarkCPUProfilerOnFunction · 0.64
BenchmarkCPUProfilerOffFunction · 0.64
TestCPUProfilerTimeFunction · 0.64