This library is provided if the clib package is compiled on a glibc based system, typically Linux. It provides access to the glibc ptmalloc informational functions for diagnosing memory usage. This library exports
struct mallinfo
returned by
mallinfo()
as a dict. See man mallinfo
for an
explanation of the fields.
malloc_info()
, which provides an XML document
describing the status of the GNU glibc malloc implementation.
The XML document is parsed and translated into a dict with a
similar structure. The malloc_info()
XML is supposed to be
self-explanatory.