ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::system Namespace Reference

Classes

struct  MemoryInfo
 

Functions

int cpu_clock_by_os ()
 Returns the CPU clock, as reported by the OS. More...
 
int get_total_cpus ()
 Returns the total number of CPUs. More...
 
MemoryInfo getMemoryInfo ()
 
std::ostream & operator<< (std::ostream &os, const MemoryInfo &infos)
 
unsigned long linuxGetAvailableRam ()
 

Function Documentation

◆ cpu_clock_by_os()

int cloudViewer::system::cpu_clock_by_os ( void  )

Returns the CPU clock, as reported by the OS.

Taken from https://github.com/anrieff/libcpuid. Duplicated to avoid the dependency for one function.

Definition at line 62 of file Cpu.cpp.

References result.

Referenced by main().

◆ get_total_cpus()

int cloudViewer::system::get_total_cpus ( void  )

Returns the total number of CPUs.

Definition at line 133 of file Cpu.cpp.

Referenced by main().

◆ getMemoryInfo()

◆ linuxGetAvailableRam()

unsigned long cloudViewer::system::linuxGetAvailableRam ( )

Definition at line 43 of file MemoryInfo.cpp.

References max().

Referenced by getMemoryInfo().

◆ operator<<()