Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContinuousProfiler ¶
type ContinuousProfiler interface { Dispatch() error Shutdown() }
ContinuousProfiler periodically captures CPU, memory, and lock profiles
func NewContinuous ¶
func NewContinuous(dir string, freq time.Duration, maxNumFiles int) ContinuousProfiler
type Profiler ¶
type Profiler interface { // StartCPUProfiler starts measuring the cpu utilization of this process StartCPUProfiler() error // StopCPUProfiler stops measuring the cpu utilization of this process StopCPUProfiler() error // MemoryProfile dumps the current memory utilization of this process MemoryProfile() error // LockProfile dumps the current lock statistics of this process LockProfile() error }
Profiler provides helper methods for measuring the current performance of this process
Click to show internal directories.
Click to hide internal directories.