Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintTimes ¶
func PrintTimes() string
PrintTimes prints how much time has passed at each timer.
func SaveMemProfile ¶
saveMemProfile saves the current memory structure of the program. An error will be returned if memory profiling is already in progress. Unlike for cpu profiling, there is no 'stopMemProfile' call - everything happens at once.
func StartCPUProfile ¶
startCPUProfile starts cpu profiling. An error will be returned if a cpu profiler is already running.
func StartContinuousProfile ¶
func StartContinuousProfile(profileDir string)
StartContinuousProfiling starts profiling in a gothread, logging at intervals various metrics such as the number of gothreads and some memory statistics.
func ToggleTimer ¶
func ToggleTimer(s string)
ToggleTimer actives a timer known by a given string. If the timer does not yet exist, it is created.
Types ¶
This section is empty.