profiling

package
v0.0.0-...-7cc9995 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 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

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

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

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

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