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... | |
bool | getMemoryStats (Stats &stats) |
get all memory stats for the current process stats The Stats object to fill with the data More... | |
std::size_t | convertBytes (std::size_t bytes, MemUnits unit) |
convert bytes to selected unit prefix More... | |
|
strong |
Enumerator | |
---|---|
Bytes | |
Kibibytes | |
Mebibytes | |
Gibibytes | |
Kilobytes | |
Megabytes | |
Gigabytes |
Definition at line 28 of file MemoryUtils.h.
std::size_t MemoryUtils::convertBytes | ( | std::size_t | bytes, |
MemUnits | unit | ||
) |
convert bytes to selected unit prefix
Definition at line 174 of file MemoryUtils.C.
Referenced by MemoryUsage::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), VectorMemoryUsage::finalize(), PerfGraph::pop(), PerfGraph::push(), PerfGraph::update(), and VectorMemoryUsage::VectorMemoryUsage().
bool MemoryUtils::getMemoryStats | ( | Stats & | stats | ) |
get all memory stats for the current process stats The Stats object to fill with the data
Definition at line 79 of file MemoryUtils.C.
Referenced by MemoryUsage::execute(), VectorMemoryUsage::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), PerfGraph::pop(), PerfGraph::push(), and PerfGraph::update().
MooseEnum MemoryUtils::getMemUnitsEnum | ( | ) |
get the moose enum for the mem_unit_prefix parameter
Definition at line 52 of file MemoryUtils.C.
Referenced by MemoryUsage::validParams(), and VectorMemoryUsage::validParams().
std::string MemoryUtils::getMPIProcessorName | ( | ) |
get the MPI hostname
Definition at line 39 of file MemoryUtils.C.
std::size_t MemoryUtils::getTotalRAM | ( | ) |
get the total amount of physical RAM available
Definition at line 59 of file MemoryUtils.C.
Referenced by MemoryUsageReporter::MemoryUsageReporter().