Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProfilingFlags ¶
AddProfilingFlags adds the --cpuprofile and --memprofile flags to the given command.
func StartProfiling ¶
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 ¶
func StopProfiling() error
StopProfiling stops profiling CPU and memory usage and writes the results to the files specified by --cpuprofile and --memprofile flags respectively.
func VersionCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.