FLINT3.7.0-dev

fprint_memory_usage, print_memory_usage

Synopsis#include <flint/profiler.h>
void fprint_memory_usage(FILE * fs)source

Print the memory usage of the current process to fs or to standard output, in one line. On Linux, the line is virt/peak/rss/peak: followed by the current and peak virtual memory size and the current and peak resident set size (from /proc/self/status); on macOS and the BSDs it is virt/rss/peak: followed by the virtual size, the resident set size and the peak resident set size. Sizes are printed with units, as in 24.8 MB.

Cite this page

The FLINT team, “fprint_memory_usage, print_memory_usage (profiler.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/profiler/fprint_memory_usage.html (generated 2026-10-20).