Celeritas
0.5.0-86+4a8eea4
|
Track memory usage across the application. More...
#include <MemRegistry.hh>
Public Member Functions | |
MemUsageId::size_type | size () const |
Number of entries. | |
MemUsageEntry & | get (MemUsageId id) |
Get the entry for an ID. | |
MemUsageEntry const & | get (MemUsageId id) const |
Get the entry for an ID. | |
size_type | depth () const |
Number of memory entries deep. | |
MemUsageId | push () |
Create a new entry and push it onto the stack. | |
void | pop () |
Pop the last entry. | |
Track memory usage across the application.
This class is not thread-safe and should generally be used during setup. The memory usage entries are a tree. Pushing and popping should be done with ScopedMem
.