RAII-style object for scoped memory usage tracking. More...
#include <statistics.hpp>
Public Member Functions | |
| MemoryRecorder ()=default | |
| Constructs a no-op MemoryRecorder (disabled state). | |
| MemoryRecorder (Statistics *stats, RmmResourceAdaptor *mr, std::string name) | |
| Constructs an active MemoryRecorder. More... | |
| ~MemoryRecorder () | |
| Destructor. More... | |
| MemoryRecorder (MemoryRecorder const &)=delete | |
| Deleted copy and move constructors/assignments. | |
| MemoryRecorder & | operator= (MemoryRecorder const &)=delete |
| MemoryRecorder (MemoryRecorder &&)=delete | |
| MemoryRecorder & | operator= (MemoryRecorder &&)=delete |
RAII-style object for scoped memory usage tracking.
Automatically tracks memory usage between construction and destruction.
Definition at line 263 of file statistics.hpp.
| rapidsmpf::Statistics::MemoryRecorder::MemoryRecorder | ( | Statistics * | stats, |
| RmmResourceAdaptor * | mr, | ||
| std::string | name | ||
| ) |
Constructs an active MemoryRecorder.
| stats | Pointer to Statistics object that will store the result. |
| mr | Memory resource that provides the scoped memory statistics. |
| name | Name of the scope. |
| rapidsmpf::Statistics::MemoryRecorder::~MemoryRecorder | ( | ) |
Destructor.
Captures memory counters and stores them in the Statistics object.