performance

package
v0.14.1 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2018 Iguazio Systems Ltd.

Licensed under the Apache License, Version 2.0 (the "License") with an addition restriction as set forth herein. You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

In addition, you may not use the software for any purposes that are illegal under applicable law, and the grant of the foregoing license under the Apache 2.0 license is conditioned upon your compliance with such restriction.

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