Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProfileHeapOutput is the flag value. ProfileHeapOutput string // ProfileCPUOutput is the flag value. ProfileCPUOutput string )
Functions ¶
func ProfileCPURun ¶
func ProfileCPURun() error
ProfileCPURun is a prerun func for starting CPU profile.
func ProfileHeapRun ¶
func ProfileHeapRun() error
ProfileHeapRun is a prerun func for starting heap profile.
Types ¶
type Runs ¶
Runs keeps a list of funcs.
var ( // PersistentPostRuns keeps a list of funcs to be cobra.Command's PersistentPostRunE. PersistentPostRuns Runs // PersistentPreRuns keeps a list of funcs to be cobra.Command's PersistentPreRunEE. PersistentPreRuns Runs // PreRuns keeps a list of funcs to be cobra.Command's PreRunE. PreRuns Runs )
Click to show internal directories.
Click to hide internal directories.