profiling

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package profiling provides helpers for using various profilers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartCPUProfile added in v0.2.1

func StartCPUProfile(cpuProfilePath string) (stop func() error, err error)

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

func StartFullProfile(fgprofPath string) (stop func() error, err error)

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

func StartTrace(tracePath string) (stop func() error, err error)

StartTrace starts a program trace using the "runtime/trace" package. Returns a function to stop the trace.

func WriteMemProfile added in v0.2.1

func WriteMemProfile(memProfilePath string) error

WriteMemProfile writes a memory profile to the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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