pproftrace

package
v0.0.0-...-2102962 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Package cloudeng.io/debug/goroutines/pproftrace

import cloudeng.io/debug/goroutines/pproftrace

Functions

Func Format
func Format(key, value string) (string, error)

Format returns a nicely formatted dump of the goroutines with the pprof key/value label.

Func LabelExists
func LabelExists(key, value string) (bool, error)

LabelExists returns true if a goroutine with the pprof key/value label exists.

Func Run
func Run(ctx context.Context, key, value string, runner func(context.Context))

Run uses pprof's label support to attach the specified key/value label to all goroutines spawed by the supplied runner. Run returns when runner returns.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(key, value string) (string, error)

Format returns a nicely formatted dump of the goroutines with the pprof key/value label.

func LabelExists

func LabelExists(key, value string) (bool, error)

LabelExists returns true if a goroutine with the pprof key/value label exists.

func Run

func Run(ctx context.Context, key, value string, runner func(context.Context))

Run uses pprof's label support to attach the specified key/value label to all goroutines spawed by the supplied runner. Run returns when runner returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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