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)
( 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.
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 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]
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.
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 #}]
STW.
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 GoRunnable GoStatus = 1
Various format-specific constants.
const MaxFramesPerStack = 128 const MaxStringSize = 1024 const ProcBad ProcStatus = 0 const ProcIdle ProcStatus = 2 const ProcRunning ProcStatus = 1 const ProcSyscall ProcStatus = 3 const ProcSyscallAbandoned ProcStatus = 4
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |