Expand description
Lightweight process diagnostics (FD count, RSS).
Lightweight process diagnostics via /proc/self.
These helpers are designed for periodic logging inside real-time loops. They perform a single read per call and are cheap on Linux.
Functionsยง
- count_
open_ fds - Count open file descriptors by reading
/proc/self/fd. - get_
rss_ kb - Return resident set size in KiB by reading
/proc/self/statm.