Информация о выделенной памяти
#include <malloc.h>struct mallinfo {int arena; /* size of the arena */int ordblks; /* number of big blocks in use */int smblks; /* number of small blocks in use */int hblks; /* number of header blocks in use */int hblkhd; /* space in header block headers */int usmblks; /* space in small blocks in use */int fsmblks; /* memory in free small blocks */int uordblks; /* space in big blocks in use */int fordblks; /* memory in free big blocks */int keepcost; /* penalty if M_KEEP is used-- not used */};
Структура содержит полученную с помощью mallinfo() информацию о выделенной памяти.
ЗОСРВ «Нейтрино»
Предыдущий раздел: Описание API системной библиотеки