Running totals of the memory held by particle data on this rank.
Definition CD_ParticleMemory.H:55
std::size_t getPeakBytes() noexcept
Get the high-water mark across all kinds.
Definition CD_ParticleMemory.H:197
std::size_t getBytes(const Kind a_kind) noexcept
Get the bytes currently held by one kind.
Definition CD_ParticleMemory.H:154
void removeBytes(const Kind a_kind, const std::size_t a_bytes) noexcept
Record a release.
Definition CD_ParticleMemory.H:140
void raisePeak(std::atomic< std::size_t > &a_mark, const std::size_t a_value) noexcept
Raise a high-water mark to a_value unless it is already at least that.
Definition CD_ParticleMemory.H:108
std::size_t getPeak(const Kind a_kind) noexcept
Get the high-water mark of one kind.
Definition CD_ParticleMemory.H:169
std::size_t getAllocatedBytes() noexcept
Get the bytes currently held by particle data of every kind.
Definition CD_ParticleMemory.H:183
void addBytes(const Kind a_kind, const std::size_t a_bytes) noexcept
Record an allocation.
Definition CD_ParticleMemory.H:124
Kind
The kinds of particle memory tracked here. See the namespace documentation.
Definition CD_ParticleMemory.H:61
@ Container
ParticleSoA arenas: capacity a rank is holding.
@ Buffer
Flat exchange buffers: payload in flight.