Started memory monitering class for linux, not compiling
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user