stw

package
v0.0.0-...-0fbd902 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Start is the timestamp when the STW event started.
	Start time.Duration
	// End is the timestamp when the STW event ended.
	End time.Duration
	// Type is the type of the STW event.
	Type EventType
	// P is the P that initiated the STW event.
	P uint64
}

Event represents a single STW event.

func Events

func Events(r io.Reader) ([]*Event, error)

Events returns a list of all STW events in the given trace.

func (Event) Duration

func (e Event) Duration() time.Duration

Duration returns the duration of the STW event.

type EventType

type EventType string

EventType is the type of an STW event.

var (
	Unknown                 EventType = "unknown"
	MarkTermination         EventType = "mark termination"
	SweepTermination        EventType = "sweep termination"
	WriteHeapDump           EventType = "write heap dump"
	GoroutineProfile        EventType = "goroutine profile"
	GoroutineProfileCleanup EventType = "goroutine profile cleanup"
	AllGoroutinesStackTrace EventType = "all goroutines stack trace"
	ReadMemStats            EventType = "read mem stats"
	AllThreadsSyscall       EventType = "AllThreadsSyscall"
	GOMAXPROCS              EventType = "GOMAXPROCS"
	StartTrace              EventType = "start trace"
	StopTrace               EventType = "stop trace"
	CountPagesInUse         EventType = "CountPagesInUse (test)"
	ReadMetricsSlow         EventType = "ReadMetricsSlow (test)"
	ReadMemStatsSlow        EventType = "ReadMemStatsSlow (test)"
	PageCachePagesLeaked    EventType = "PageCachePagesLeaked (test)"
	ResetDebugLog           EventType = "ResetDebugLog (test)"
)

List of known STW event types.

Jump to

Keyboard shortcuts

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