performance

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STDOUT = "stdout"
	STDERR = "stderr"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricReporter

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

func DefaultReporterInstance

func DefaultReporterInstance() (reporter *MetricReporter, err error)

func ReporterInstance

func ReporterInstance(writeTo string, reportPeriodically bool, reportIntervalSeconds int, reportOnShutdown bool) *MetricReporter

func ReporterInstanceFromConfig

func ReporterInstanceFromConfig(config *config.V3ioConfig) *MetricReporter

func (*MetricReporter) IncrementCounter added in v0.0.13

func (mr *MetricReporter) IncrementCounter(name string, count int64)

func (*MetricReporter) Start

func (mr *MetricReporter) Start() error

func (*MetricReporter) Stop

func (mr *MetricReporter) Stop() error

func (*MetricReporter) UpdateHistogram added in v0.0.13

func (mr *MetricReporter) UpdateHistogram(name string, value int64)

func (*MetricReporter) UpdateMeter added in v0.0.13

func (mr *MetricReporter) UpdateMeter(name string, count int64)

func (*MetricReporter) WithTimer added in v0.0.13

func (mr *MetricReporter) WithTimer(name string, body func())

Jump to

Keyboard shortcuts

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