package
0.0.0-20201020153340-53909ea70814
Repository: https://github.com/gagliardetto/golang-go.git
Documentation: pkg.go.dev
# Functions
GoroutineStats generates statistics for all goroutines in the trace.
MutatorUtilization returns a set of mutator utilization functions for the given trace.
NewMMUCurve returns an MMU curve for the given mutator utilization function.
No description provided by the author
Parse parses, post-processes and verifies the trace.
Print dumps events to stdout.
PrintEvent dumps the event to stdout.
RelatedGoroutines finds a set of goroutines related to goroutine goid.
# Constants
start of per-P batch of events [pid, timestamp].
Event types in the trace.
contains tracer timer frequency [frequency (ticks per second)].
denotes that the previous wakeup of this goroutine was futile [timestamp].
GC done [timestamp].
GC mark assist done [timestamp].
GC mark assist start [timestamp, stack].
GC start [timestamp, seq, stack id].
GC mark termination done [timestamp].
GC mark termination start [timestamp, kind].
GC sweep done [timestamp, swept, reclaimed].
GC sweep start [timestamp, stack id].
goroutine blocks [timestamp, stack].
goroutine blocks on Cond [timestamp, stack].
goroutine blocks on GC assist [timestamp, stack].
goroutine blocks on network [timestamp, stack].
goroutine blocks on chan recv [timestamp, stack].
goroutine blocks on select [timestamp, stack].
goroutine blocks on chan send [timestamp, stack].
goroutine blocks on Mutex/RWMutex [timestamp, stack].
goroutine creation [timestamp, new goroutine id, new stack id, stack id].
goroutine ends [timestamp].
denotes that goroutine is in syscall when tracing starts [timestamp, goroutine id].
current value of GOMAXPROCS [timestamp, GOMAXPROCS, stack id].
goroutine is preempted [timestamp, stack].
goroutine calls Gosched [timestamp, stack].
goroutine calls Sleep [timestamp, stack].
goroutine starts running [timestamp, goroutine id, seq].
goroutine starts running with label [timestamp, goroutine id, seq, label string id].
goroutine starts running on the same P as the last event [timestamp, goroutine id].
goroutine stops (like in select{}) [timestamp, stack].
syscall blocks [timestamp].
syscall enter [timestamp, stack].
syscall exit [timestamp, goroutine id, seq, real timestamp].
syscall exit on the same P as the last event [timestamp, goroutine id, real timestamp].
goroutine is unblocked [timestamp, goroutine id, seq, stack].
goroutine is unblocked on the same P as the last event [timestamp, goroutine id, stack].
denotes that goroutine is blocked when tracing starts [timestamp, goroutine id].
memstats.heap_live change [timestamp, heap_alloc].
memstats.next_gc change [timestamp, next_gc].
unused.
start of P [timestamp, thread id].
stop of P [timestamp].
stack [stack id, number of PCs, array of {PC, func string ID, file string ID, line}].
string dictionary entry [ID, length, string].
denotes timer goroutine [timer goroutine id].
trace.Log [timestamp, internal id, key string id, stack, value string].
trace.WithRegion [timestamp, internal task id, mode(0:start, 1:end), stack, name string].
trace.NewContext [timestamp, internal task id, internal parent id, stack, name string].
end of task [timestamp, internal task id, stack].
Special P identifiers:.
depicts GC state.
depicts network unblocks.
depicts returns from syscalls.
depicts timer unblocks.
UtilAssist means utilization should account for mark assists.
UtilBackground means utilization should account for background mark workers.
UtilPerProc means each P should be given a separate utilization function.
UtilSTW means utilization should account for STW events.
UtilSweep means utilization should account for sweeping.
# Variables
BreakTimestampsForTesting causes the parser to randomly alter timestamps (for testing of broken cputicks).
ErrTimeOrder is returned by Parse when the trace contains time stamps that do not respect actual event ordering.
No description provided by the author
# Structs
Event describes one event in the trace.
Frame is a frame in stack traces.
GDesc contains statistics and execution details of a single goroutine.
GExecutionStat contains statistics about a goroutine's execution during a period of time.
An MMUCurve is the minimum mutator utilization curve across multiple window sizes.
MutatorUtil is a change in mutator utilization at a particular time.
ParseResult is the result of Parse.
UserRegionDesc represents a region and goroutine execution stats while the region was active.
UtilWindow is a specific window at Time.
Writer is a test trace writer.
# Type aliases
UtilFlags controls the behavior of MutatorUtilization.