Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CPUFilename is a filename in which the CPU profiling is stored. CPUFilename = "status_cpu.prof" // MemFilename is a filename in which the memory profiling is stored. MemFilename = "status_mem.prof" )
Variables ¶
This section is empty.
Functions ¶
func StartCPUProfile ¶
StartCPUProfile enables CPU profiling for the current process. While profiling, the profile will be buffered and written to the file in folder dataDir.
func StopCPUProfile ¶
func StopCPUProfile() error
StopCPUProfile stops the current CPU profile, if any, and closes the file.
func WriteHeapFile ¶
WriteHeapFile writes heap memory to the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.