CPUProfiler constructs a new instance of CPUProfiler using the given time function to record the CPU time consumed.
(options ...CPUProfilerOption)
| 98 | // CPUProfiler constructs a new instance of CPUProfiler using the given time |
| 99 | // function to record the CPU time consumed. |
| 100 | func (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. |