Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 v0.0.1 Oct 30, 2023 Changes in this version + func GetCurrentProcess() (*process.Process, error) + type CpuStatistics struct + func NewCpuStatistics() (*CpuStatistics, error) + func (cs *CpuStatistics) ComputeStatistics() + func (cs *CpuStatistics) CpuPercentUsage() uint64 + type MemStatistics struct + HeapInUse uint64 + PercentUsed uint64 + StackInUse uint64 + Total uint64 + UsedByGolang uint64 + UsedBySystem uint64 + func AcquireMemStatistics() MemStatistics + func (stats *MemStatistics) String() string + type NetStatistics struct + func (ns *NetStatistics) BpsRecv() uint64 + func (ns *NetStatistics) BpsRecvPeak() uint64 + func (ns *NetStatistics) BpsSent() uint64 + func (ns *NetStatistics) BpsSentPeak() uint64 + func (ns *NetStatistics) ComputeStatistics() + func (ns *NetStatistics) PercentRecv() uint64 + func (ns *NetStatistics) PercentSent() uint64