Process-wide allocator counters for all TrackedMemoryResource instances.
More...
|
|
static void | print (std::ostream &os=std::cout) |
| | Prints current memory statistics to the specified output stream.
|
|
static void | reset () |
| | Resets all memory statistics to zero.
|
|
|
static std::atomic< size_t > | allocationCount |
|
static std::atomic< size_t > | currentUsage |
|
static std::atomic< size_t > | deallocationCount |
|
static std::atomic< size_t > | memcpyOperationCount |
|
static std::atomic< size_t > | memsetOperationCount |
|
static std::atomic< size_t > | peakUsage |
|
static std::atomic< size_t > | totalAllocated |
|
static std::atomic< size_t > | totalDeallocated |
Process-wide allocator counters for all TrackedMemoryResource instances.
Named MemoryAllocationStats, not MemoryStats, to stay distinct from Mila::Dnn::MemoryStats – the per-component figure returned by Component::getMemoryStats(). The two are one namespace apart, and every consumer that opens both Mila::Dnn and Mila::Dnn::Compute (which is the conventional pair) saw an ambiguous unqualified name.
The documentation for this struct was generated from the following file:
- Mila/Src/Dnn/Compute/MemoryResourceTracker.ixx