Documentation ¶
Index ¶
- Variables
- func New(settings Settings) (server *httpserver.Server, err error)
- type Settings
- func (s Settings) Copy() (copied Settings)
- func (s *Settings) OverrideWith(other Settings)
- func (s *Settings) Read(r *reader.Reader) (err error)
- func (s *Settings) SetDefaults()
- func (s Settings) String() string
- func (s Settings) ToLinesNode() (node *gotree.Node)
- func (s Settings) Validate() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBlockProfileRateNegative = errors.New("block profile rate cannot be negative") ErrMutexProfileRateNegative = errors.New("mutex profile rate cannot be negative") )
Functions ¶
Types ¶
type Settings ¶
type Settings struct { // Enabled can be false or true. // It defaults to false. Enabled *bool // See runtime.SetBlockProfileRate // Set to 0 to disable profiling. BlockProfileRate *int // See runtime.SetMutexProfileFraction // Set to 0 to disable profiling. MutexProfileRate *int // HTTPServer contains settings to configure // the HTTP server serving pprof data. HTTPServer httpserver.Settings }
Settings are the settings for the Pprof service.
func (*Settings) OverrideWith ¶
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (Settings) ToLinesNode ¶
Click to show internal directories.
Click to hide internal directories.