Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Krozark/monitoring
a lib to determine CPU /memory consumption.
https://github.com/Krozark/monitoring
monitoring
Last synced: 2 months ago
JSON representation
a lib to determine CPU /memory consumption.
- Host: GitHub
- URL: https://github.com/Krozark/monitoring
- Owner: Krozark
- License: bsd-2-clause
- Archived: true
- Created: 2014-02-10T09:40:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-20T10:16:43.000Z (almost 10 years ago)
- Last Synced: 2024-08-04T02:09:48.112Z (6 months ago)
- Topics: monitoring
- Language: C
- Size: 1.78 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - monitoring
README
monitoring
==========a lib to determine CPU /memory consumption.
Current build status: [![Build Status](https://travis-ci.org/Krozark/monitoring.png?branch=master)](https://travis-ci.org/Krozark/monitoring)
Build
=====Use cmake to build the lib.
Testing
=======Ubuntu 12.04+ x86/32
Windows xp x86Examples
========Make a look to files in examples directory to see them.
Doc
===You can build the documentation using doxygen, or "make doc"
Usage
=====All class are under the sys namespace.
You can use them by include
```c++
//All files
//or
```sys
---```c++
SYS_64BIT //defined is the OS is 64 bits
SYS_32BIT ///defined is the os is 32 bitsstd::string osName();
std::string osNameBit();
int osBit();
bool checkBit();
```sys::Cpu
--------```c++
static int processors();
static double used(); //in %
static double usedByProc(); //in %
```sys::memory::Physical
---------------------```c++
static uint64_t total();
static uint64_t used();
static uint64_t usedByProc();
```sys::memory::Virtual
--------------------```c++
static uint64_t total();
static uint64_t used();
static uint64_t usedByProc();
```