8#include <boost/python/class.hpp>
15 class_<MemoryStats>(
"MemoryStats", init<>(arg(
"self"),
"Construct MemoryStats object."))
void export_MemoryStats()
This class is responsible for memory statistics.
double getFreeRatio() const
The ratio of available to total system memory as a number between 0-100.
std::size_t reservedMem() const
Returns the reserved memory that has not been factored into the available memory calculation.
void update()
Update the structure with current information, taking into account what is to be ignored.
std::size_t getCurrentRSS() const
std::size_t getPeakRSS() const
std::size_t totalMem() const
Returns the total memory of the system.
std::size_t availMem() const
Returns the available memory of the system in kiB.
std::size_t residentMem() const
Returns the memory usage of the current process in kiB.
std::size_t virtualMem() const
Returns the virtual memory usage of the current process in kiB.