![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
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 () |
| 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().
| int cloudViewer::system::get_total_cpus | ( | void | ) |
| MemoryInfo cloudViewer::system::getMemoryInfo | ( | ) |
Definition at line 63 of file MemoryInfo.cpp.
References cloudViewer::system::MemoryInfo::availableRam, count, cloudViewer::system::MemoryInfo::freeRam, cloudViewer::system::MemoryInfo::freeSwap, linuxGetAvailableRam(), max(), NULL, cloudViewer::utility::swap(), cloudViewer::system::MemoryInfo::totalRam, and cloudViewer::system::MemoryInfo::totalSwap.
Referenced by GetTotalMemoryInfo(), and main().
| unsigned long cloudViewer::system::linuxGetAvailableRam | ( | ) |
| std::ostream & cloudViewer::system::operator<< | ( | std::ostream & | os, |
| const MemoryInfo & | infos | ||
| ) |