Synopsis
typedef struct {
long successMallocCalls;
long failedMallocCalls;
long freeCalls;
long trimCalls;
long noopTrimCalls;
long allocCount;
long blockCount;
long largestFreeBlockSize;
long allocCountHighWater;
long blockCountHighWater;
long largestFreeBlockSizeLowWater;
long allFreeMallocHitCount;
long heap_size;
} CTL_HEAP_STATISTICS_t;
Description
CTL_HEAP_STATISTICS_t contains statistics maintained by the heap.
Structure
-
successMallocCalls
- Number of calls to ctl_heap_alloc that were satisfied with
a memory block.
-
failedMallocCalls
- Number of calls to ctl_heap_alloc where allocation failed to
return a memory block.
-
freeCalls
- Number of calls to ctl_heap_free returning a non-zero memory block.
-
trimCalls
- Number of calls to ctl_heap_trim.
-
trimCalls
- Number of calls to ctl_heap_trim where there was nothing to do.
-
allocCount
- Number of allocated memory blocks in the heap.
-
blockCount
- Total number of memory blocks in the heap.
-
largestFreeBlockSize
- The number of bytes in the largest free block.
-
allocCountHighWater
- The highest recorded number of allocated memory blocks.
-
allocCountHighWater
- The highest recorded number of total memory blocks.
-
largestFreeBlockSizeLowWater
- The smallest recorded free block size.
-
allFreeMallocHitCount
- The number of times ctl_heap_alloc entered with all blocks free.
-
heap_size
- The size of the heap, in bytes.