MemInfo is a goprocinfo type that reads memory data from Linux’s /proc filesystem through ReadMemInfo. It provides the raw memory state used by worker metrics. section 6.3
A Stats wrapper stores MemInfo as its MemStats pointer alongside disk, CPU, and load types. Helper methods expose total, available, used, and percentage-oriented memory metrics without repeating field access. section 6.3
Reading memory metrics
GetMemoryInfo calls linux.ReadMemInfo("/proc/meminfo"). On failure it logs an error and returns an empty MemInfo, allowing GetStats to construct a complete Stats value.
