MCPcopy Create free account
hub / github.com/divan/gotrace / Event

Struct Event

trace/parser.go:20–42  ·  view source on GitHub ↗

Event describes one event in the trace.

Source from the content-addressed store, hash-verified

18
19// Event describes one event in the trace.
20type Event struct {
21 Off int // offset in input file (for debugging and error reporting)
22 Type byte // one of Ev*
23 Seq int64 // sequence number
24 Ts int64 // timestamp in nanoseconds
25 P int // P on which the event happened (can be one of TimerP, NetpollP, SyscallP)
26 G uint64 // G on which the event happened
27 StkID uint64 // unique stack ID
28 Stk []*Frame // stack trace (can be empty)
29 Args [3]uint64 // event-type-specific arguments
30 // linked event (can be nil), depends on event type:
31 // for GCStart: the GCStop
32 // for GCScanStart: the GCScanDone
33 // for GCSweepStart: the GCSweepDone
34 // for GoCreate: first GoStart of the created goroutine
35 // for GoStart: the associated GoEnd, GoBlock or other blocking event
36 // for GoSched/GoPreempt: the next GoStart
37 // for GoBlock and other blocking events: the unblock event
38 // for GoUnblock: the associated GoStart
39 // for blocking GoSysCall: the associated GoSysExit
40 // for GoSysExit: the next GoStart
41 Link *Event
42}
43
44// Frame is a frame in stack traces.
45type Frame struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected