Logo
Reference manual - version ored_version
Namespaces | Functions
osutils.hpp File Reference

Various OS specific utilities. More...

#include <string>

Namespaces

 ore
 Serializable Credit Default Swap.
 
 ore::data
 
 ore::data::os
 

Functions

std::string getOsName ()
 Returns the OS Name.
 
std::string getOsVersion ()
 Returns the OS Version.
 
std::string getCpuName ()
 Returns the CPU name (e.g. "Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz".
 
unsigned int getNumberCores ()
 Returns the number of Cores available to the OS.
 
std::string getMemoryRAM ()
 Returns the total amount of memory available (installed RAM)
 
std::string getMemoryUsage ()
 Returns the current process memory usage.
 
std::string getPeakMemoryUsage ()
 Returns the current process peak memory usage.
 
unsigned long long getMemoryUsageBytes ()
 
unsigned long long getPeakMemoryUsageBytes ()
 Returns the current process peak memory usage in bytes.
 
std::string getUsername ()
 Returns the current username.
 
std::string getHostname ()
 Returns the machine name.
 
std::string getSystemDetails ()
 Returns all the above system details in a single string.
 

Detailed Description

Various OS specific utilities.