package go122

Import Path
	internal/trace/event/go122 (on go.dev)

Dependency Relation
	imports 2 packages, and imported by 3 packages

Involved Source Files event.go
Package-Level Type Names (total 2)
/* sort by: | */
( GoStatus) String() string GoStatus : expvar.Var GoStatus : fmt.Stringer const GoBad const GoRunnable const GoRunning const GoSyscall const GoWaiting
( ProcStatus) String() string ProcStatus : expvar.Var ProcStatus : fmt.Stringer const ProcBad const ProcIdle const ProcRunning const ProcSyscall const ProcSyscallAbandoned
Package-Level Functions (total 2)
EventString returns the name of a Go 1.22 event.
func Specs() []event.Spec
Package-Level Constants (total 73)
AllocFree is the alloc-free events experiment.
const EvCPUSample event.Type = 7 // CPU profiling sample [timestamp, M ID, P ID, goroutine ID, stack ID]
const EvCPUSamples event.Type = 6 // start of a section of CPU samples [...EvCPUSample]
Structural events.
Batch event for an experimental batch with a custom format. Added in Go 1.23.
const EvFrequency event.Type = 8 // timestamp units per sec [freq]
GC events.
const EvGCBegin event.Type = 29 // GC start [timestamp, seq, stack ID]
const EvGCEnd event.Type = 30 // GC done [timestamp, seq]
const EvGCMarkAssistActive event.Type = 34 // GC mark assist active [timestamp, goroutine ID]
const EvGCMarkAssistBegin event.Type = 35 // GC mark assist start [timestamp, stack ID]
const EvGCMarkAssistEnd event.Type = 36 // GC mark assist done [timestamp]
const EvGCSweepActive event.Type = 31 // GC sweep active [timestamp, P ID]
const EvGCSweepBegin event.Type = 32 // GC sweep start [timestamp, stack ID]
const EvGCSweepEnd event.Type = 33 // GC sweep done [timestamp, swept bytes, reclaimed bytes]
const EvGoBlock event.Type = 20 // goroutine blocks [timestamp, reason, stack ID]
Goroutines.
const EvGoCreateBlocked event.Type = 47 // goroutine creation (starts blocked) [timestamp, new goroutine ID, new stack ID, stack ID]
const EvGoCreateSyscall event.Type = 15 // goroutine appears in syscall (cgo callback) [timestamp, new goroutine ID]
const EvGoDestroy event.Type = 17 // goroutine ends [timestamp]
const EvGoDestroySyscall event.Type = 18 // goroutine ends in syscall (cgo callback) [timestamp]
Annotations.
Experimental goroutine stack events. Added in Go 1.23.
Experimental events.
Experimental events.
const EvGoStart event.Type = 16 // goroutine starts running [timestamp, goroutine ID, goroutine seq]
const EvGoStatus event.Type = 25 // goroutine status at the start of a generation [timestamp, goroutine ID, thread ID, status]
GoStatus with stack. Added in Go 1.23.
const EvGoStop event.Type = 19 // goroutine yields its time, but is runnable [timestamp, reason, stack ID]
Coroutines. Added in Go 1.23.
const EvGoSwitchDestroy event.Type = 46 // goroutine switch and destroy [timestamp, goroutine ID, goroutine seq]
const EvGoSyscallBegin event.Type = 22 // syscall enter [timestamp, P seq, stack ID]
const EvGoSyscallEnd event.Type = 23 // syscall exit [timestamp]
const EvGoSyscallEndBlocked event.Type = 24 // syscall exit and it blocked at some point [timestamp]
const EvGoUnblock event.Type = 21 // goroutine is unblocked [timestamp, goroutine ID, goroutine seq, stack ID]
const EvHeapAlloc event.Type = 37 // gcController.heapLive change [timestamp, heap alloc in bytes]
const EvHeapGoal event.Type = 38 // gcController.heapGoal() change [timestamp, heap goal in bytes]
Experimental heap object events. Added in Go 1.23.
Experimental events.
Experimental events.
const EvNone event.Type = 0 // unused
Procs.
const EvProcStart event.Type = 10 // start of P [timestamp, P ID, P seq]
const EvProcStatus event.Type = 13 // P status at the start of a generation [timestamp, P ID, status]
const EvProcSteal event.Type = 12 // P was stolen [timestamp, P ID, P seq, M ID]
const EvProcStop event.Type = 11 // stop of P [timestamp]
Experimental heap span events. Added in Go 1.23.
Experimental events.
Experimental events.
const EvStack event.Type = 3 // stack table entry [ID, ...{PC, func string ID, file string ID, line #}]
const EvStacks event.Type = 2 // start of a section of the stack table [...EvStack]
const EvString event.Type = 5 // string dictionary entry [ID, length, string]
const EvStrings event.Type = 4 // start of a section of the string dictionary [...EvString]
STW.
const EvSTWEnd event.Type = 27 // STW done [timestamp]
const EvUserLog event.Type = 44 // trace.Log [timestamp, internal task ID, key string ID, value string ID, stack]
const EvUserRegionBegin event.Type = 42 // trace.{Start,With}Region [timestamp, internal task ID, name string ID, stack ID]
const EvUserRegionEnd event.Type = 43 // trace.{End,With}Region [timestamp, internal task ID, name string ID, stack ID]
const EvUserTaskBegin event.Type = 40 // trace.NewTask [timestamp, internal task ID, internal parent task ID, name string ID, stack ID]
const EvUserTaskEnd event.Type = 41 // end of a task [timestamp, internal task ID, stack ID]
const GoBad GoStatus = 0
const GoRunnable GoStatus = 1
const GoRunning GoStatus = 2
const GoSyscall GoStatus = 3
const GoWaiting GoStatus = 4
Various format-specific constants.
const MaxFramesPerStack = 128
const MaxStringSize = 1024
const ProcBad ProcStatus = 0
const ProcIdle ProcStatus = 2