Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryUpdater ¶
type MemoryUpdater struct {
// contains filtered or unexported fields
}
MemoryUpdater tracks mem stats provided by runtime.ReadMemStats such as Alloc, NumGoroutine etc
func NewMemoryUpdater ¶
func NewMemoryUpdater() *MemoryUpdater
NewMemoryUpdater returns a new tracker instance
func (*MemoryUpdater) LogJSON ¶ added in v0.1.11
func (mu *MemoryUpdater) LogJSON()
LogJSON returns a string description of the current status as JSON
func (*MemoryUpdater) Status ¶
func (mu *MemoryUpdater) Status() string
Status returns a string description of the stats collected for the memory trackers <min, max, avg>
func (*MemoryUpdater) Update ¶
func (mu *MemoryUpdater) Update()
Update takes a new sample and adds it to statistics
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor is a simple service to take samples
Click to show internal directories.
Click to hide internal directories.