profile

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginCPUProfile

func BeginCPUProfile(path string) (file *os.File, err error)

func BeginTrace

func BeginTrace(path string) (file *os.File, err error)

func DumpGC

func DumpGC()

func EndCPUProfile

func EndCPUProfile(file *os.File) error

func EndProfile

func EndProfile(params *Params, files *Files) error

func EndTrace

func EndTrace(file *os.File) error

Types

type Files

type Files struct {
	CPU    *os.File
	Memory *os.File
	Trace  *os.File
}

func BeginProfile

func BeginProfile(params *Params) (files *Files, err error)

type Item

type Item struct {
	Enable bool
	Path   string
}

type Params

type Params struct {
	CPU    Item
	Memory Item
	Trace  Item
}

func Default

func Default() *Params

Jump to

Keyboard shortcuts

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