Skip to main content

Module diagnostics

Module diagnostics 

Source
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.