Classes | |
struct | Stats |
Enumerations | |
enum | MemUnits { MemUnits::Bytes, MemUnits::Kibibytes, MemUnits::Mebibytes, MemUnits::Gibibytes = 3, MemUnits::Kilobytes, MemUnits::Megabytes, MemUnits::Gigabytes = 6 } |
Functions | |
std::string | getMPIProcessorName () |
get the MPI hostname More... | |
MooseEnum | getMemUnitsEnum () |
get the moose enum for the mem_unit_prefix parameter More... | |
std::size_t | getTotalRAM () |
get the total amount of physical RAM available More... | |
void | getMemoryStats (Stats &stats) |
get all memory stats for the current process More... | |
std::size_t | convertBytes (std::size_t bytes, MemUnits unit) |
convert bytes to selected unit prefix More... | |
|
strong |
std::size_t MemoryUtils::convertBytes | ( | std::size_t | bytes, |
MemUnits | unit | ||
) |
convert bytes to selected unit prefix
Definition at line 127 of file MemoryUtils.C.
Referenced by MemoryUsage::execute(), VectorMemoryUsage::finalize(), and VectorMemoryUsage::VectorMemoryUsage().
void MemoryUtils::getMemoryStats | ( | Stats & | stats | ) |
get all memory stats for the current process
Definition at line 70 of file MemoryUtils.C.
Referenced by MemoryUsage::execute(), and VectorMemoryUsage::execute().
MooseEnum MemoryUtils::getMemUnitsEnum | ( | ) |
get the moose enum for the mem_unit_prefix parameter
Definition at line 47 of file MemoryUtils.C.
Referenced by MemoryUsage::validParams(), and VectorMemoryUsage::validParams().
std::string MemoryUtils::getMPIProcessorName | ( | ) |
get the MPI hostname
Definition at line 34 of file MemoryUtils.C.
std::size_t MemoryUtils::getTotalRAM | ( | ) |
get the total amount of physical RAM available
Definition at line 54 of file MemoryUtils.C.
Referenced by MemoryUsageReporter::MemoryUsageReporter().