profiling

package
v0.0.0-...-a5cec35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CPUFilename = "status_cpu.prof"

CPUFilename is a filename in which the CPU profiling is stored.

View Source
const MemFilename = "status_mem.prof"

MemFilename is a filename in which the memory profiling is stored.

Variables

This section is empty.

Functions

func StartCPUProfile

func StartCPUProfile(dataDir string) error

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

func WriteHeapFile(dataDir string) error

WriteHeapFile writes heap memory to the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL