measurer

package
v0.0.0-...-e28121d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package measurer wraps the logic used to perform the measurements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Measurer

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

func NewMeasurer

func NewMeasurer(expected uint, done chan<- struct{}) *Measurer

func (*Measurer) Metrics

func (m *Measurer) Metrics(start, end time.Time, cpu, ram int64)

func (*Measurer) MetricsAsString

func (m *Measurer) MetricsAsString() [][]string

func (*Measurer) ReadyTimes

func (m *Measurer) ReadyTimes() []time.Time

func (*Measurer) ReadyTimesAsDuration

func (m *Measurer) ReadyTimesAsDuration() []string

func (*Measurer) ReadyTimesAsUnixNano

func (m *Measurer) ReadyTimesAsUnixNano() []string

func (*Measurer) SetOffloadingStartTimestamp

func (m *Measurer) SetOffloadingStartTimestamp(t time.Time)

func (*Measurer) SetPodReady

func (m *Measurer) SetPodReady(pod string, t time.Time)

func (*Measurer) ToCSV

func (m *Measurer) ToCSV(w io.Writer)

func (*Measurer) ToTable

func (m *Measurer) ToTable(w io.Writer)

type Metric

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

Jump to

Keyboard shortcuts

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