pprof

package
v0.0.0-...-a7567a8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package pprof contains facade for runtime/pprof package

Index

Constants

View Source
const (
	Heap         profile = "heap"
	Goroutine    profile = "goroutine"
	Allocs       profile = "allocs"
	ThreadCreate profile = "threadcreate"
	Block        profile = "block"
	Mutex        profile = "mutex"
)

Variables

This section is empty.

Functions

func CPUCapture

func CPUCapture(ctx context.Context, filename string, duration time.Duration) error

CPUCapture creates file and start CPU profiling for specified duration to it

func Capture

func Capture(profile profile, filename string) error

Capture creates file and save specified profiling to it

Types

This section is empty.

Jump to

Keyboard shortcuts

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