Celeritas 0.7.0-dev.170+develop.df22d2a88
Loading...
Searching...
No Matches
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 constget (MemUsageId id) const
 Get the entry for an ID.
 
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: