chrome

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: NCSA Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const HTMLTemplate = `` /* 1942-byte string literal not displayed */

See https://github.com/catapult-project/catapult/blob/master/tracing/docs/embedding-trace-viewer.md This is almost verbatim copy of: https://github.com/catapult-project/catapult/blob/master/tracing/bin/index.html on revision 623a005a3ffa9de13c4b92bc72290e7bcd1ca591.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFrame

type EventFrame struct {
	Name   string `json:"name"`
	Parent int    `json:"parent,omitempty"`
}

type Trace

type Trace struct {
	StartTime       time.Time              `json:"-"`
	EndTime         time.Time              `json:"-"`
	TraceEvents     TraceEvents            `json:"traceEvents,omitempty"`
	DisplayTimeUnit string                 `json:"displayTimeUnit,omitempty"`
	Frames          map[string]EventFrame  `json:"stackFrames"`
	TimeUnit        string                 `json:"timeUnit,omitempty"`
	OtherData       map[string]interface{} `json:"otherData,omitempty"`
}

func (Trace) Len

func (t Trace) Len() int

func (Trace) Less

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

func (Trace) Publish

func (t Trace) Publish(ctx context.Context, lvl tracer.Level, opts ...opentracing.StartSpanOption) error

func (Trace) Swap

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

type TraceEvent

type TraceEvent struct {
	Name      string                 `json:"name,omitempty"`
	Category  string                 `json:"cat,omitempty"`
	EventType string                 `json:"ph,omitempty"`
	Timestamp int64                  `json:"ts,omitempty"`  // displayTimeUnit
	Duration  time.Duration          `json:"dur,omitempty"` // displayTimeUnit
	ProcessID uint64                 `json:"pid"`
	ThreadID  uint64                 `json:"tid,omitempty"`
	Args      map[string]interface{} `json:"args,omitempty"`
	Stack     int                    `json:"sf,omitempty"`
	EndStack  int                    `json:"esf,omitempty"`
	Time      time.Time              `json:"-"`
}

Trace is an entry of trace format. https://github.com/catapult-project/catapult/tree/master/tracing

func (TraceEvent) ID

func (t TraceEvent) ID() string

type TraceEvents

type TraceEvents []TraceEvent

func (TraceEvents) Len

func (t TraceEvents) Len() int

func (TraceEvents) Less

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

func (TraceEvents) Swap

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

Jump to

Keyboard shortcuts

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