Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Namespaces | Functions
osutils.hpp File Reference

Various OS specific utilities. More...

#include <string>

Go to the source code of this file.

Namespaces

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

Functions

string getOsName ()
 Returns the OS Name. More...
 
string getOsVersion ()
 Returns the OS Version. More...
 
string getCpuName ()
 Returns the CPU name (e.g. "Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz". More...
 
unsigned int getNumberCores ()
 Returns the number of Cores available to the OS. More...
 
string getMemoryRAM ()
 Returns the total amount of memory available (installed RAM) More...
 
string getMemoryUsage ()
 Returns the current process memory usage. More...
 
string getPeakMemoryUsage ()
 Returns the current process peak memory usage. More...
 
unsigned long long getMemoryUsageBytes ()
 
unsigned long long getPeakMemoryUsageBytes ()
 Returns the current process peak memory usage in bytes. More...
 
string getUsername ()
 Returns the current username. More...
 
string getHostname ()
 Returns the machine name. More...
 
string getSystemDetails ()
 Returns all the above system details in a single string. More...
 
void dumpStacktrace ()
 Write the current stacktrace to stderr and LOG() with level = ALERT. More...
 
void setAssertHandler ()
 Set an assert handler that logs the stacktrace. More...
 

Detailed Description

Various OS specific utilities.

Definition in file osutils.hpp.