Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CgoCalls ¶
func CgoCalls() *structures.Metric
CgoCalls create a func metric who return number of current C calls of last second
func GoRoutines ¶
func GoRoutines() *structures.Metric
GoRoutines create a func metric who return number of current GoRoutines
func InitMetricsMemStats ¶
func InitMetricsMemStats()
InitMetricsMemStats create metrics for MemStats
Types ¶
type MetricsMemStats ¶
type MetricsMemStats struct { Initied bool NumGC *structures.Metric LastNumGC float64 NumMallocs *structures.Metric LastNumMallocs float64 NumFree *structures.Metric LastNumFree float64 HeapAlloc *structures.Metric Pause *structures.Metric LastPause float64 }
MetricsMemStats is a structure to simplify storage of mem values
var GlobalMetricsMemStats MetricsMemStats
GlobalMetricsMemStats store current and last mem stats
Click to show internal directories.
Click to hide internal directories.