Documentation
¶
Overview ¶
Package memusage logs Linux process and container memory high-water marks. Accounting is read on each call; no background sampling or shared state is used. Log is safe for concurrent use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
Log records Linux kernel memory high-water marks with the context logger. Missing or unsupported accounting is logged as null with an error, not zero. The process RSS excludes children and unmapped tmpfs; the cgroup peak includes all memory charged to the container, including child processes and scratch files. These are lifetime peaks, not per-call measurements. Log is safe for concurrent use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.