On Linux, we have this (GNU C library) function called mallinfo , which gives you some numbers related to memory allocation:
struct mallinfo {
int arena;
int ordblks;
int smblks;
int hblks;
int hblkhd;
int usmblks;
int fsmblks;
int uordblks;
int fordblks;
int keepcost;
};
Oddly enough, these values are usually 32-bit integers (!); well, that really will not be done, especially for values given in the number of bytes (for example, fordblks).
I would suggest that this is somehow outdated, and that some other object is available to get the same information. What is this alternative object?
source
share