RAII-style object for scoped memory usage tracking. More...
#include <statistics.hpp>
Public Member Functions | |
| MemoryRecorder ()=default | |
| Constructs a no-op MemoryRecorder. | |
| MemoryRecorder (std::shared_ptr< Statistics > stats, RmmResourceAdaptor mr, std::string name) | |
Constructs an active MemoryRecorder. Pushes a scoped record at construction; the destructor pops it and (if stats is still enabled) publishes it under name. More... | |
| MemoryRecorder (MemoryRecorder const &)=delete | |
| 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 570 of file statistics.hpp.
| rapidsmpf::Statistics::MemoryRecorder::MemoryRecorder | ( | std::shared_ptr< Statistics > | stats, |
| RmmResourceAdaptor | mr, | ||
| std::string | name | ||
| ) |
Constructs an active MemoryRecorder. Pushes a scoped record at construction; the destructor pops it and (if stats is still enabled) publishes it under name.
| stats | Owning Statistics. Must not be null. |
| mr | RMM resource adaptor providing scoped memory statistics. |
| name | Name of the scope. |