Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGetExternalPIDFunc ¶
func SetGetExternalPIDFunc(fn func() string)
SetGetExternalPIDFunc configures the profiler to use provided function to retrieve the current PID
func SetLogLevel
deprecated
func SetLogLevel(level int)
SetLogLevel sets the min log level for autoprofiler
Deprecated: use autoprofile.SetLogger() to set the logger and configure the min log level directly
func SetLogger ¶ added in v1.8.0
func SetLogger(l logger.LeveledLogger)
SetLogger sets the leveled logger to use to output the diagnostic messages and errors
func SetOptions ¶
func SetOptions(opts Options)
SetOptions configures the profiler with provided settings
func SetSendProfilesFunc ¶
func SetSendProfilesFunc(fn internal.SendProfilesFunc)
SetSendProfilesFunc configures the profiler to use provided function to write collected profiles
Types ¶
Directories ¶
Path | Synopsis |
---|---|
pprof/profile
Package profile provides a representation of profile.proto and methods to encode/decode profiles in this format.
|
Package profile provides a representation of profile.proto and methods to encode/decode profiles in this format. |
Click to show internal directories.
Click to hide internal directories.