histogram

package module
v0.0.0-...-14bd5cf Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package histogram provides helpers for working with runtime/metrics histograms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSV

func Percentile

func Percentile(h *metrics.Float64Histogram, pct float64) float64

func Percentiles

func Percentiles(h *metrics.Float64Histogram, pct []float64) []float64

func Samples

func Samples(h *metrics.Float64Histogram) uint64

Samples returns the total number of samples in the histogram.

func Visualize

func Visualize(h *metrics.Float64Histogram, full bool) string

Visualize returns a rudimentary ASCII visualization. It plots buckets directly, despite differing bucket sizes, so the visualization may be misleading.

If full, all buckets are shown. Otherwise the output is compressed to exclude most empty buckets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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