MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / updateMemoryUsage_box

Method updateMemoryUsage_box

Src/Base/AMReX_BoxArray.cpp:202–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201#ifdef AMREX_MEM_PROFILING
202void
203BARef::updateMemoryUsage_box (int s)
204{
205 if (m_abox.size() > 1) {
206 Long b = amrex::bytesOf(m_abox);
207 if (s > 0) {
208 total_box_bytes += b;
209 total_box_bytes_hwm = std::max(total_box_bytes_hwm, total_box_bytes);
210 ++numboxarrays;
211 numboxarrays_hwm = std::max(numboxarrays_hwm, numboxarrays);
212 } else {
213 total_box_bytes -= b;
214 --numboxarrays;
215 }
216 }
217}
218
219void
220BARef::updateMemoryUsage_hash (int s)

Callers 1

removeOverlapMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected