|
libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_allocation_tracker.h>
Data Fields | |
| size_t | maxAllocations |
| size_t | maxBytes |
| size_t | maxAllocationSize |
| GblAllocationCounters | counters |
Structure used for tracking allocation events and statistics.
Definition at line 31 of file gimbal_allocation_tracker.h.
|
Creates a GblAllocationTracker and returns a pointer to it.
|
Destroys the given GblAllocation tracker, returning the result.
|
To be called every time an allocation has been requested, to track the event.
|
To be called every time a reallocation has been requested, to track the event.
|
To be called every time a free has been requested, to track the event.
|
Returns GBL_TRUE if the given pointer points to an active, tracked allocation.
|
Dumps all of the active allocations and their context information to the log.
|
Saves the current value of GblAllocationTracker::counters to the given structure.
|
Takes the difference between GblAllocationTracker::counters and pSrc, storing the result in the pDst.
| size_t GblAllocationTracker::maxAllocations |
Maximum number of active allocations.
Definition at line 32 of file gimbal_allocation_tracker.h.
| size_t GblAllocationTracker::maxBytes |
Maximum number of allocated bytes.
Definition at line 33 of file gimbal_allocation_tracker.h.
| size_t GblAllocationTracker::maxAllocationSize |
Maximum size of a single allocation.
Definition at line 34 of file gimbal_allocation_tracker.h.
| GblAllocationCounters GblAllocationTracker::counters |
Current allocation counters.
Definition at line 35 of file gimbal_allocation_tracker.h.