Documentation ¶
Overview ¶
Package memstat implements metrics collection related to Memory usage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemStat ¶
type MemStat struct { RawFree *metrics.Gauge Active *metrics.Gauge Inactive *metrics.Gauge Wired *metrics.Gauge Purgeable *metrics.Gauge RawTotal *metrics.Gauge Pagesize C.vm_size_t // contains filtered or unexported fields }
MemStat represents memory usage statistics
func New ¶
func New(m *metrics.MetricContext, Step time.Duration) *MemStat
New registers with metriccontext and starts metric collection every Step
func (*MemStat) Collect ¶
func (s *MemStat) Collect()
Collect uses mach interface to populate various memory usage metrics
Click to show internal directories.
Click to hide internal directories.