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 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) Publish ¶
func (t Trace) Publish(ctx context.Context, lvl tracer.Level, opts ...opentracing.StartSpanOption) error
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)
Click to show internal directories.
Click to hide internal directories.