Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProfilingFlags ¶ added in v0.54.0
AddProfilingFlags adds the --cpuprofile and --memprofile flags to the given command.
func StartProfiling ¶ added in v0.54.0
func StartProfiling() error
StartProfiling starts profiling CPU and memory usage if either --cpuprofile or --memprofile flags were set and bound to viper configurations respectively.
func StopProfiling ¶ added in v0.54.0
func StopProfiling() error
StopProfiling stops profiling CPU and memory usage and writes the results to the files specified by --cpuprofile and --memprofile flags respectively.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.