Single-header C library. Drop it into your project folder.
Want to see how it works? Check out the source code and interactive tutorial on GitHub.
libtrm is a lightweight, zero-dependency, single-header C library for Linux that exposes your application's true memory footprint by reading the Proportional Set Size (PSS). It uses a lightning-fast custom parser to read the kernel's memory files and giving you the exact footprint of your unshared code. This is way more accurate than standard RAM checking because usually shared libraries get counted as program RAM usage.