Extension methods for the IHeapAllocationTracker.
More...
Extension methods for the IHeapAllocationTracker.
◆ TrackAllocDebug< T >()
| static void Quantum.Allocator.HeapAllocationTrackerExt.TrackAllocDebug< T > |
( |
this T |
t, |
|
|
Ptr |
ptr |
|
) |
| |
|
inlinestatic |
Wrap tracking allocations around the DEBUG define.
- Template Parameters
-
| T | Type of allocation tracker |
- Parameters
-
| t | Tracker instance |
| ptr | Ptr to track |
- Type Constraints
-
| T | : | IHeapAllocationTracker | |
◆ TrackFreeDebug< T >()
| static void Quantum.Allocator.HeapAllocationTrackerExt.TrackFreeDebug< T > |
( |
this T |
t, |
|
|
Ptr |
ptr |
|
) |
| |
|
inlinestatic |
Wrap tracking deallocations around the DEBUG define.
- Template Parameters
-
| T | Type of allocation tracker |
- Parameters
-
| t | Tracker instance |
| ptr | Ptr to track |
- Type Constraints
-
| T | : | IHeapAllocationTracker | |
◆ CheckAllocationsDebug< T >()
| static void Quantum.Allocator.HeapAllocationTrackerExt.CheckAllocationsDebug< T > |
( |
this T |
t, |
|
|
ICollection< Ptr > |
ptrs |
|
) |
| |
|
inlinestatic |
Wrap the leak detection around DEBUG define.
- Template Parameters
-
| T | Type of allocation tracker |
- Parameters
-
| t | Tracker instance |
| ptrs | Ptrs to validate |
- Type Constraints
-
| T | : | IHeapAllocationTracker | |