| 200 | |
| 201 | #ifdef AMREX_MEM_PROFILING |
| 202 | void |
| 203 | BARef::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 | |
| 219 | void |
| 220 | BARef::updateMemoryUsage_hash (int s) |