mirror of
https://github.com/ToyB-Chan/minimal-heap.git
synced 2026-07-13 21:51:16 +02:00
added totalsizeoccupied stat
This commit is contained in:
@@ -68,15 +68,20 @@ typedef struct _MIHP_HeapConfig
|
||||
typedef struct _MIHP_HeapStats
|
||||
{
|
||||
size_t NumMemoryAreas;
|
||||
|
||||
size_t NumTotalSegments;
|
||||
size_t NumTotalOccupiedSegments;
|
||||
|
||||
size_t TotalSize;
|
||||
size_t TotalSizeOccupied;
|
||||
} MIHP_HeapStats;
|
||||
|
||||
// This structs size must be multiple of 8
|
||||
typedef struct _MIHP_HeapMemoryAreaHeader
|
||||
{
|
||||
size_t AreaSize;
|
||||
size_t AreaSizeOccupied;
|
||||
|
||||
size_t NumSegments;
|
||||
size_t NumOccupiedSegments;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user