Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyProfileFlags ¶
func MaybeStartProfile ¶
func MaybeStartProfile() interface { Stop() }
MaybeStartProfile checks the -blockProfile, -cpuProfile, and -memProfile flag and, for each that is set, attempts to start gathering profiling data into the appropriate files. It returns an object with one method, Stop(), that must be called in order to flush profile data to disk before the process terminates.
func RegisterProfileFlags ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.