package
1.2.20
Repository: https://github.com/qitmeer/qng-core.git
Documentation: pkg.go.dev

# Functions

CollectProcessMetrics periodically collects various metrics about the running process.
GetOrRegisterResettingTimer returns an existing ResettingTimer or constructs and registers a new StandardResettingTimer.
NewCounter create a new metrics Counter, either a real one of a NOP stub depending on the metrics flag.
NewMeter create a new metrics Meter, either a real one of a NOP stub depending on the metrics flag.
No description provided by the author
No description provided by the author
NewRegisteredResettingTimer constructs and registers a new StandardResettingTimer.
NewResettingTimer constructs a new StandardResettingTimer.
NewTimer create a new metrics Timer, either a real one of a NOP stub depending on the metrics flag.
ReadDiskStats retrieves the disk IO stats belonging to the current process.

# Constants

Initial slice capacity for the values stored in a ResettingTimer.
MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.

# Variables

Enabled is the flag specifying if metrics are enable or not.

# Structs

DiskStats is the per process disk io stats.
NilResettingTimer is a no-op ResettingTimer.
ResettingTimerSnapshot is a point-in-time copy of another ResettingTimer.
StandardResettingTimer is the standard implementation of a ResettingTimer.

# Interfaces

ResettingTimer is used for storing aggregated values for timers, which are reset on every flush interval.

# Type aliases

Int64Slice attaches the methods of sort.Interface to []int64, sorting in increasing order.