convert

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: NCSA Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classify

func Classify(sp model.Span) string

func FilterTraceByDepth

func FilterTraceByDepth(trace model.Trace, depth int) (model.Trace, error)

func FixParentRelationship

func FixParentRelationship(trace model.Trace) (model.Trace, error)

func FixTrace

func FixTrace(trace model.Trace) (model.Trace, error)

func FrameworkLayerIndex

func FrameworkLayerIndex(sp model.Span) (int, error)

Types

type Classification

type Classification int
const (
	ClassificationGenericAPI Classification = iota + 1
	ClassificationDeepScope
	ClassificationAPIRequest
	ClassificationAPITracing
	ClassificationMXNetCAPI
	ClassificationOpen
	ClassificationURLs
	ClassificationClose
	ClassificationFrameworkLayer
	ClassificationUnknown = Classification(math.MaxInt32)
)

func ClassificationString

func ClassificationString(s string) (Classification, error)

ClassificationString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ClassificationValues

func ClassificationValues() []Classification

ClassificationValues returns all values of the enum

func (Classification) IsAClassification

func (i Classification) IsAClassification() bool

IsAClassification returns "true" if the value is listed in the enum definition. "false" otherwise

func (Classification) MarshalJSON

func (i Classification) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Classification

func (Classification) MarshalText

func (i Classification) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for Classification

func (Classification) MarshalYAML

func (i Classification) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for Classification

func (*Classification) Scan

func (i *Classification) Scan(value interface{}) error

func (Classification) String

func (i Classification) String() string

func (*Classification) UnmarshalJSON

func (i *Classification) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Classification

func (*Classification) UnmarshalText

func (i *Classification) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for Classification

func (*Classification) UnmarshalYAML

func (i *Classification) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for Classification

func (Classification) Value

func (i Classification) Value() (driver.Value, error)

type Interval

type Interval struct {
	*model.Span
}

func ToInterval

func ToInterval(s model.Span) Interval

func (Interval) Contains

func (i Interval) Contains(iv Interval) bool

func (Interval) End

func (i Interval) End() uint64

func (Interval) HighAtDimension

func (i Interval) HighAtDimension(uint64) int64

func (Interval) ID

func (i Interval) ID() uint64

func (Interval) IsNil

func (i Interval) IsNil() bool

func (Interval) LowAtDimension

func (i Interval) LowAtDimension(uint64) int64

func (Interval) OverlapsAtDimension

func (i Interval) OverlapsAtDimension(iv augmentedtree.Interval, dimension uint64) bool

func (Interval) Start

func (i Interval) Start() uint64

type IntervalTree

type IntervalTree struct {
	augmentedtree.Tree
	// contains filtered or unexported fields
}

func NewIntervalTree

func NewIntervalTree(trace model.Trace) (*IntervalTree, error)

func NewIntervalTreeFromTraceFile

func NewIntervalTreeFromTraceFile(path string) (*IntervalTree, error)

func NewIntervalTreeFromTraceString

func NewIntervalTreeFromTraceString(data string) (*IntervalTree, error)

func (IntervalTree) ChildrenOf

func (t IntervalTree) ChildrenOf(sp Interval) []Interval

func (IntervalTree) DepthOf

func (t IntervalTree) DepthOf(sp Interval) int

func (IntervalTree) FilterByDepth

func (t IntervalTree) FilterByDepth(depth int) (model.Trace, error)

func (*IntervalTree) FilterOnlyChildrenOf

func (t *IntervalTree) FilterOnlyChildrenOf(operationName string) (*Interval, error)

func (IntervalTree) FixParentRelationship

func (t IntervalTree) FixParentRelationship() (model.Trace, error)

func (IntervalTree) GetIntervalByIdx

func (t IntervalTree) GetIntervalByIdx(idx int) Interval

func (IntervalTree) GetIntervals

func (t IntervalTree) GetIntervals() []Interval

func (IntervalTree) GetIntervalsByOperationName

func (t IntervalTree) GetIntervalsByOperationName(name string) []Interval

func (IntervalTree) ID

func (t IntervalTree) ID() string

func (IntervalTree) ImmediateChildrenOf

func (t IntervalTree) ImmediateChildrenOf(sp Interval) []Interval

func (IntervalTree) MaxInterval

func (t IntervalTree) MaxInterval() Interval

func (IntervalTree) ParentOf

func (t IntervalTree) ParentOf(sp Interval) Interval

func (IntervalTree) ParentsOf

func (t IntervalTree) ParentsOf(sp Interval) []Interval

type Intervals

type Intervals []Interval

func (Intervals) Len

func (t Intervals) Len() int

func (Intervals) Less

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

func (Intervals) Swap

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

type TraceInformation

type TraceInformation struct {
	Traces []model.Trace     `bson:"data,omitempty" json:"data,omitempty"`
	Total  int               `bson:"total,omitempty" json:"total,omitempty"`
	Limit  int               `bson:"limit,omitempty" json:"limit,omitempty"`
	Offset int               `bson:"offset,omitempty" json:"offset,omitempty"`
	Errors []structuredError `bson:"errors,omitempty" json:"errors,omitempty"`
}

Directories

Path Synopsis
speedscope

Jump to

Keyboard shortcuts

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