Documentation
¶
Overview ¶
Package gprofiling package help you do profiling your program in easy way.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(storePath string)
Start arguments is store folder path,
all profiling files will be stored in "storePath" folder, folder must be exists
Example ¶
//Start will using the argument as store data folder Start("debug") defer Stop()
Output:
func StartArg ¶
func StartArg(argName string)
StartArg bind command line argument, no - or -- prefix, such as: profiling
./foobar -profiling=debug
all profiling files will be stored in named debug folder, folder must be exists
Example ¶
//StartArg will search command line arguments "profiling" , using it's value as store data folder. StartArg("profiling") defer Stop()
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.