Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProfilingCpu ¶
ProfilingCpu enables CPU profiling for the current process if no writer is provided then profiling will not be started
func ProfilingMem ¶
ProfilingMem enables memory profiling for current process if no writer is provided then profiling will not be started
Types ¶
type Option ¶
type Option func(prof *Profile)
Option is a type used to provide optional profiling/tracing writers
func WithCpuWriter ¶
WithCpuWriter used to set an io.Writer for CPU profiling in Profile
func WithMemProfileRate ¶
WithMemProfileRate used to set fraction of memory allocations that are recorded and reported in the memory profile see runtime.MemProfileRate
func WithMemWriter ¶
WithMemWriter used to set an io.Writer for memory profiling in Profile
func WithTraceWriter ¶
WithTraceWriter used to set an io.Writer for tracing in Profile