metrics

package
v2.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Thousand float64   = 1000
	Nano     TimeScale = "ns"
	Micro    TimeScale = "μs"
	Milli    TimeScale = "ms"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Key   string
	Times []*Time
	Avg   *Time
}

func (*Metric) Normalize

func (m *Metric) Normalize()

func (*Metric) String

func (m *Metric) String() string

type Report

type Report []Metric

func (*Report) Normalize

func (r *Report) Normalize() *Report

func (*Report) Print

func (r *Report) Print()

type Time

type Time struct {
	Value float64
	Scale TimeScale
}

func (*Time) Normalize

func (t *Time) Normalize() bool

func (*Time) String

func (t *Time) String() string

type TimeScale

type TimeScale string

Jump to

Keyboard shortcuts

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