Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedPlatform = fmt.Errorf( "autopprof: unsupported platform (only Linux is supported)", ) ErrInvalidMemThreshold = fmt.Errorf( "autopprof: memory threshold value must be between 0 and 1", ) ErrNilReporter = fmt.Errorf("autopprof: Reporter can't be nil") )
Errors.
Functions ¶
Types ¶
type Option ¶
type Option struct { // MemThreshold is the memory usage threshold (between 0 and 1) // to trigger the heap profiling. // Autopprof will start the heap profiling when the memory usage // is higher than this threshold. MemThreshold float64 // Reporter is the reporter to send the profiling report implementing // the report.Reporter interface. Reporter report.Reporter }
Option is the configuration for the autopprof.
Click to show internal directories.
Click to hide internal directories.