Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::MemRegistry Class Reference

Track memory usage across the application. More...

#include <MemRegistry.hh>

Public Member Functions

MemUsageId::size_type size () const
 Number of entries.
 
MemUsageEntryget (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.
 

Detailed Description

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 .


The documentation for this class was generated from the following files: