goroutine

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const MinStackBufferSize = 1 << 20

MinStackBufferSize is the minimum buffer size for goroutine stack dumps (1MB)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoroutineCollector

type GoroutineCollector struct {
	// contains filtered or unexported fields
}

GoroutineCollector implements the collector.Collector interface for goroutine collection

func GetInstance

func GetInstance() *GoroutineCollector

GetInstance returns the singleton instance of GoroutineCollector

func (*GoroutineCollector) CollectorName

func (gc *GoroutineCollector) CollectorName() string

CollectorName returns the unique name of the collector

func (*GoroutineCollector) Disable

func (gc *GoroutineCollector) Disable()

func (*GoroutineCollector) DumpGoroutines

func (gc *GoroutineCollector) DumpGoroutines()

DumpGoroutines dumps all goroutines and sends the information

func (*GoroutineCollector) Enable

func (gc *GoroutineCollector) Enable()

Enable is called when the collector should start collecting data

func (*GoroutineCollector) GetGoRoutineName

func (gc *GoroutineCollector) GetGoRoutineName(goId int64) (string, bool)

GetGoRoutineName gets the name for a goroutine

func (*GoroutineCollector) InitCollector

func (gc *GoroutineCollector) InitCollector(controller ds.Controller, cfg any, appRunContext ds.AppRunContext) error

InitCollector initializes the goroutine collector with a controller and configuration

func (*GoroutineCollector) SetGoRoutineName

func (gc *GoroutineCollector) SetGoRoutineName(goId int64, name string)

SetGoRoutineName sets a name for a goroutine

func (*GoroutineCollector) SetNextSendFull added in v0.5.0

func (gc *GoroutineCollector) SetNextSendFull(full bool)

SetNextSendFull sets the nextSendFull flag to force a full update on the next dump

Jump to

Keyboard shortcuts

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