stats

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BYTE = 1 << (10 * iota)
	KILOBYTE
	MEGABYTE
	GIGABYTE
	TERABYTE
)

Variables

This section is empty.

Functions

func DumpPrometheusDefaults

func DumpPrometheusDefaults(path string) error

DumpPrometheusDefaults write default Prometheus metrics to a file

func EnableMemoryStatistics

func EnableMemoryStatistics(
	ctx context.Context,
	interval time.Duration,
	path string,
)

EnableMemoryStatistics enables go routine that periodically prints memory usage of the go process.

func PrintMemoryStatistics

func PrintMemoryStatistics()

PrintMemoryStatistics prints memory statistics using go runtime library.

func PrintNumOfRoutines

func PrintNumOfRoutines()

PrintNumOfRoutines prints number of go routines currently running

Types

This section is empty.

Jump to

Keyboard shortcuts

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