profiling

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorGoroutines

func MonitorGoroutines(ctx context.Context, interval time.Duration)

MonitorGoroutines periodically logs goroutine counts

func PrintGoroutineStacks

func PrintGoroutineStacks()

PrintGoroutineStacks prints all goroutine stacks to logs Useful for debugging hangs

func StartProfiling

func StartProfiling(cfg Config) (func(), error)

StartProfiling enables runtime profiling based on config

Types

type Config

type Config struct {
	Enabled      bool
	HTTPPort     int
	BlockProfile bool
	MutexProfile bool
	CPUProfile   bool
	TraceEnabled bool
	TraceFile    string
}

Config holds profiling configuration

Jump to

Keyboard shortcuts

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