profiling

package
v0.0.0-...-953790c Latest Latest
Warning

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

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

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

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