chombo-discharge
Functions
MemoryReport Namespace Reference

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

Functions

void getMaxMinMemoryUsage ()
 Print the global maximum and minimum memory usage. This includes peak memory and unfreed memory.
 
void 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. More...
 
void getMemoryUsage (Vector< Real > &a_peak, Vector< Real > &a_unfreed)
 Get peak and unfreed memory usage per rank. More...
 

Detailed Description

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

Function Documentation

◆ getMaxMinMemoryUsage()

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.

Parameters
[out]a_maxPeakMaximum peak memory (maximized over ranks)
[out]a_minPeakMinimum peak memory (minimuzed over ranks)
[out]a_maxUnfreedMaximum unfreed memory (maximized over ranks)
[out]a_minUnfreedMinimum unfreed memory (minimized over ranks)

◆ getMemoryUsage()

void MemoryReport::getMemoryUsage ( Vector< Real > &  a_peak,
Vector< Real > &  a_unfreed 
)

Get peak and unfreed memory usage per rank.

If using MPI, this will do an Allgather so that every rank can see usage.

Parameters
[out]a_peakPeak memory usage
[in]a_unfreedUnfreed memory usage