bcmetrics

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collectible added in v0.2.0

type Collectible struct {
	// contains filtered or unexported fields
}

func (*Collectible) Values added in v0.2.3

func (c *Collectible) Values() (float64, string)

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func (*Collector) AddMetrics added in v0.1.2

func (c *Collector) AddMetrics(metrics ...Metric)

func (*Collector) Collect added in v0.2.0

func (c *Collector) Collect(b *testing.B) []Collectible

func (*Collector) Reset

func (c *Collector) Reset()

func (*Collector) Start

func (c *Collector) Start()

func (*Collector) Stop

func (c *Collector) Stop()

type CpuTime

type CpuTime struct {
	// contains filtered or unexported fields
}

func (*CpuTime) Collect added in v0.2.0

func (c *CpuTime) Collect(b *testing.B) Collectible

func (*CpuTime) Reset

func (c *CpuTime) Reset()

func (*CpuTime) Start

func (c *CpuTime) Start()

func (*CpuTime) Stop

func (c *CpuTime) Stop()

type Metric

type Metric interface {
	Start()
	Stop()
	Reset()
	Collect(b *testing.B) Collectible
}

Jump to

Keyboard shortcuts

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