chrometrace

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 0 Imported by: 0

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.

https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/edit#heading=h.puwqg050lyuy

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.

func (ByStart) Len

func (t ByStart) Len() int

func (ByStart) Less

func (t ByStart) Less(i, j int) bool

func (ByStart) Swap

func (t ByStart) Swap(i, j int)

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.

https://code.google.com/p/trace-viewer/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL