Documentation ¶
Overview ¶
package chrometrace contains utilities for working with Chrome traces.
Index ¶
Constants ¶
View Source
const ( CompleteEvent = "X" FlowEventStart = "s" FlowEventEnd = "f" )
Event types used in conversions.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByStart ¶
type ByStart []Trace
ByStart is a wrapper type around a slice of Traces ordered by event start time.
This type implements sort.Interface, see https://pkg.go.dev/sort#Interface.
type Trace ¶
type Trace struct { Name string `json:"name"` Category string `json:"cat"` EventType string `json:"ph"` TimestampMicros int `json:"ts"` DurationMicros int `json:"dur"` ProcessID int `json:"pid"` ThreadID int `json:"tid"` Args map[string]interface{} `json:"args,omitempty"` ID int `json:"id,omitempty"` BindingPoint string `json:"bp,omitempty"` }
Trace is an entry of trace format.
Click to show internal directories.
Click to hide internal directories.