ctimer

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: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	Name        string      `json:"name,omitempty"`
	Metadata    string      `json:"metadata,omitempty"`
	Start       int64       `json:"start,omitempty"`
	End         int64       `json:"end,omitempty"`
	StartTime   time.Time   `json:"-"`
	EndTime     time.Time   `json:"-"`
	TraceEvents TraceEvents `json:"elements,omitempty"`
}

func New

func New(data string) (*Trace, error)

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"`
	Metadata           string    `json:"metadata,omitempty"`
	LayerType          string    `json:"layer_type,omitempty"`
	Start              int64     `json:"start,omitempty"`
	End                int64     `json:"end,omitempty"`
	ProcessID          uint64    `json:"process_id,omitempty"`
	ThreadID           uint64    `json:"thread_id,omitempty"`
	LayerSequenceIndex int64     `json:"layer_sequence_index,omitempty"`
	Shapes             [][]int64 `json:"shapes,omitempty"`
	StartTime          time.Time `json:"-"`
	EndTime            time.Time `json:"-"`
}

func (TraceEvent) ID

func (t TraceEvent) ID() string

func (*TraceEvent) Publish

func (event *TraceEvent) Publish(ctx context.Context, lvl tracer.Level, opts ...opentracing.StartSpanOption) error

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