StopProfiling stops profiling the CPU.
()
| 64 | |
| 65 | // StopProfiling stops profiling the CPU. |
| 66 | func StopProfiling() { |
| 67 | profMutex.Lock() |
| 68 | defer profMutex.Unlock() |
| 69 | |
| 70 | if prof != nil { |
| 71 | prof.Stop() |
| 72 | prof = nil |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | // HasOptions returns true when at least one profiler target has been selected. |
| 77 | func (options ProfilingOptions) HasOptions() bool { |
no test coverage detected