Event describes one event in the trace.
| 18 | |
| 19 | // Event describes one event in the trace. |
| 20 | type 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. |
| 45 | type Frame struct { |
nothing calls this directly
no outgoing calls
no test coverage detected