Started memory monitering class for linux, not compiling

This commit is contained in:
Ben
2018-12-10 12:44:18 +00:00
parent 81cfff8a59
commit 5bde13909e
7 changed files with 60 additions and 13 deletions

View File

@@ -15,10 +15,7 @@ public:
int CPU_WORK;
int CPU_TOTAL;
int UPDATE_INTERVAL; // s
// int CPU_PREVIOUS_CORES_WORK_AND_TOTAL[2048][8];
// int CPU_CORES_WORK_AND_TOTAL[2048][8];
int UPDATE_INTERVAL; // ms
std::map<int, std::map<int, int>> CPU_PREVIOUS_CORES_WORK_AND_TOTAL;
std::map<int, std::map<int, int>> CPU_CORES_WORK_AND_TOTAL;

View File

@@ -1,6 +1,5 @@
#pragma once
#include <vector>
#include <thread>
#include <mutex>
@@ -9,14 +8,13 @@ public:
Memory();
std::mutex Memory_Mutex;
long double MEMORY_TOTAL_MB;
long double MEMORY_FREE_MB;
long double MEMORY_AVAILABLE_MB;
long double MEMORY_ACTIVE_MB;
long double MEMORY_INACTIVE_MB;
int UPDATE_INTERVAL; // s
int UPDATE_INTERVAL; // ms
void START_MEMORY_POLLING();
static void MEMORY_POLL(Memory* mem);