fprint_memory_usage, print_memory_usage
Synopsis
#include <flint/profiler.h>void fprint_memory_usage(FILE * fs)sourcevoid print_memory_usage(void)sourcePrint 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).
@misc{flint-doc-profiler-fprint-memory-usage,
author = {{The FLINT team}},
title = {{fprint\_memory\_usage, print\_memory\_usage (profiler.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/profiler/fprint_memory_usage.html},
note = {Generated 2026-10-20}
}