MCPcopy Create free account
hub / github.com/dolthub/doltgresql / StopProfiling

Function StopProfiling

utils/pprof.go:66–74  ·  view source on GitHub ↗

StopProfiling stops profiling the CPU.

()

Source from the content-addressed store, hash-verified

64
65// StopProfiling stops profiling the CPU.
66func 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.
77func (options ProfilingOptions) HasOptions() bool {

Callers 2

mainFunction · 0.92
handleErrAndExitCodeFunction · 0.92

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
StopMethod · 0.45

Tested by

no test coverage detected