https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
MemoryUtils.h File Reference

Go to the source code of this file.

Classes

struct  MemoryUtils::Stats
 

Namespaces

namespace  MemoryUtils
 

Enumerations

enum class  MemoryUtils::MemUnits {
  MemoryUtils::Bytes , MemoryUtils::Kibibytes , MemoryUtils::Mebibytes , MemoryUtils::Gibibytes = 3 ,
  MemoryUtils::Kilobytes , MemoryUtils::Megabytes , MemoryUtils::Gigabytes = 6
}
 

Functions

std::string MemoryUtils::getMPIProcessorName ()
 get the MPI hostname
 
MooseEnum MemoryUtils::getMemUnitsEnum ()
 get the moose enum for the mem_unit_prefix parameter
 
std::size_t MemoryUtils::getTotalRAM ()
 get the total amount of physical RAM available
 
bool MemoryUtils::getMemoryStats (Stats &stats)
 get all memory stats for the current process stats The Stats object to fill with the data
 
std::size_t MemoryUtils::convertBytes (std::size_t bytes, MemUnits unit)
 convert bytes to selected unit prefix