Documentation ¶
Overview ¶
Package profiling provides helpers for using various profilers.
Index ¶
- func StartCPUProfile(cpuProfilePath string) (stop func() error, err error)
- func StartFullProfile(fgprofPath string) (stop func() error, err error)
- func StartProfilers(cpuProfilePath, memProfilePath, tracePath, fgprofPath string) (stopProfile func() error, err error)
- func StartTrace(tracePath string) (stop func() error, err error)
- func WriteMemProfile(memProfilePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartCPUProfile ¶ added in v0.2.1
StartCPUProfile starts a CPU profile that will be written to the given path. Returns a function to stop the profiler.
func StartFullProfile ¶ added in v0.2.1
StartFullProfile starts a full go profile written to the given path. Returns a function to stop the profiler.
func StartProfilers ¶
func StartProfilers(cpuProfilePath, memProfilePath, tracePath, fgprofPath string) (stopProfile func() error, err error)
StartProfilers starts various profilers and returns a function to stop them.
func StartTrace ¶ added in v0.2.1
StartTrace starts a program trace using the "runtime/trace" package. Returns a function to stop the trace.
func WriteMemProfile ¶ added in v0.2.1
WriteMemProfile writes a memory profile to the given path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.