Memory stats for the host OS or for container, depending on where the app is running. For the host, returns an error if memory cannot be read. If the function fails to read container's stats, it returns host memory. Swap stats, however, are _always_ host stats.
| 16 | // container's stats, it returns host memory. Swap stats, however, are _always_ host stats. |
| 17 | |
| 18 | type MemStat struct { |
| 19 | Total uint64 |
| 20 | Used uint64 |
| 21 | Free uint64 |
| 22 | BuffCache uint64 |
| 23 | ActualFree uint64 |
| 24 | ActualUsed uint64 |
| 25 | SwapTotal uint64 |
| 26 | SwapFree uint64 |
| 27 | SwapUsed uint64 |
| 28 | } |
| 29 | |
| 30 | var mem0 = MemStat{ActualFree: math.MaxUint64} |
| 31 |
nothing calls this directly
no outgoing calls
no test coverage detected