Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profiler ¶
type Profiler struct { // Dir, if set, is the path where profiling data will be written to. // // Can also be configured with "-profile-output-dir" flag. Dir string // ProfileCPU, if true, indicates that the profiler should profile the CPU. // // Requires Dir to be set, since it's where the profiler output is dumped. // // Can also be set with "-profile-cpu". ProfileCPU bool // ProfileHeap, if true, indicates that the profiler should profile heap // allocations. // // Requires Dir to be set, since it's where the profiler output is dumped. // // Can also be set with "-profile-heap". ProfileHeap bool // contains filtered or unexported fields }
Profiler helps setup and manage profiling
func (*Profiler) DumpSnapshot ¶
DumpSnapshot dumps a profile snapshot to the configured output directory. If no output directory is configured, nothing will happen.
Click to show internal directories.
Click to hide internal directories.