package
0.0.0-20220607162611-72ec4f339e15
Repository: https://github.com/google/schedviz.git
Documentation: pkg.go.dev
# Packages
Copyright 2019 Google Inc.
# Functions
CPUOverflowed reads a per_cpu stats file to decide whether any events overflowed for the cpu.
CPUOverflowedByMap reads a dictionary representation of the per_cpu stats file to decide whether any events are overflowed for the cpu.
New parses trace formats and returns a new TraceParser.
NewEventSetBuilder constructs a new builder for making EventSet proto Optionally, a TraceParser can be provided.
NewTraceEvent creates a new TraceEvent.
WalkPerCPUDir walks the input directory looking for files of the format cpu\d+.
# Structs
EventFormat represents a TraceFS event's format.
EventSetBuilder is a builder for constructing EventSet protobufs.
Format is a collection of fields contained within an event format.
FormatField describes a single field within a format.
TraceEvent holds a single trace event as unmarshalled from the raw binary trace output.
TraceParser contains format information for a trace.
# Interfaces
TraceReader is an interface for an io.Reader that also provides a Discard function An example implementation of this interface is bufio.Reader.
# Type aliases
AddEventCallback is the type of the callback used by TraceParser.ParseTrace() and is called whenever an event is found.