profiles

package
v0.0.0-...-e2b8481 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Heap

func Heap(dir string) (err error)

func StartCPU

func StartCPU(dir string, typ CPUType) (closeFn func() error, err error)

StartCPU starts CPU profiling. If no error, it returns close function that stops and flushes profile to provided directory. NOTE(bwplotka): It does not make sense to run more than one of those.

Types

type CPUType

type CPUType string
const (
	CPUTypeBuiltIn CPUType = "built-in"
	// CPUProfileTypeFGProf represents enhanced https://github.com/felixge/fgprof profiling.
	CPUTypeFGProf CPUType = "fgprof"
)

Jump to

Keyboard shortcuts

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