chombo-discharge
Loading...
Searching...
No Matches
Namespaces | Functions
CD_MemoryReport.H File Reference

Headers for utility functions that report memory usage. More...

#include <iosfwd>
#include <string>
#include <REAL.H>
#include <Vector.H>
#include <CD_ParticleMemory.H>
#include <CD_NamespaceHeader.H>
#include <CD_NamespaceFooter.H>
Include dependency graph for CD_MemoryReport.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MemoryReport
 Namespace containing utility functions for reporting memory usage in various formats.
 

Functions

void MemoryReport::getMaxMinMemoryUsage ()
 Print the global maximum and minimum memory usage. This includes peak memory and unfreed memory.
 
void MemoryReport::getMaxMinMemoryUsage (Real &a_maxPeak, Real &a_minPeak, Real &a_maxUnfreed, Real &a_minUnfreed)
 Print the global maximum and minimum memory usage. This includes peak memory and unfreed memory.
 
void MemoryReport::getMemoryUsage (Vector< Real > &a_peak, Vector< Real > &a_unfreed)
 Get peak and unfreed memory usage per rank.
 
void MemoryReport::getResidentSetSize (Real &a_currentRSS, Real &a_peakRSS)
 Get the calling process' current and peak resident set size.
 
void MemoryReport::getMaxMinResidentSetSize (Real &a_maxCurrent, Real &a_minCurrent, Real &a_maxPeak, Real &a_minPeak)
 Get the global maximum and minimum resident set size over all ranks.
 
std::string MemoryReport::bytesAsMB (const long long a_bytes)
 Format a byte count as megabytes for a report line.
 
std::string MemoryReport::bytesAsMB (const Real a_bytes)
 Format a byte count as megabytes for a report line.
 
void MemoryReport::printMemoryTable (std::ostream &a_out, const std::string &a_indent)
 Write the full memory report as a table.
 

Detailed Description

Headers for utility functions that report memory usage.

Author
Robert Marskar