CPU expandability and MDs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
|
||||
@@ -9,18 +9,21 @@ public:
|
||||
CPU();
|
||||
|
||||
std::mutex CPU_Mutex;
|
||||
int CPU_PREVIOUS_IDLE;
|
||||
int CPU_PREVIOUS_WORK;
|
||||
int CPU_PREVIOUS_TOTAL;
|
||||
int CPU_IDLE;
|
||||
int CPU_WORK;
|
||||
int CPU_TOTAL;
|
||||
|
||||
int UPDATE_INTERVAL; // s
|
||||
|
||||
std::vector<std::vector<int>> CPU_CORES_WORK_AND_TOTAL;
|
||||
|
||||
void START_CPU_POLLING();
|
||||
static void CPU_POLL(CPU* cpu);
|
||||
void END_CPU_POLLING();
|
||||
|
||||
double CPU_PERCENT();
|
||||
std::vector<double> CPU_CORE_PERCENT();
|
||||
|
||||
virtual ~CPU();
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user