123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #pragma once
- #include <iostream>
- #include <map>
- #include <time.h>
- #include <dirent.h>
- #include <time.h>
- #include <cstdlib>
- #include <dirent.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <unistd.h>
- #include "Util/logger.h"
- #include "Util/NoticeCenter.h"
- #include "Poller/EventPoller.h"
- #include "Player/PlayerProxy.h"
- #include "Rtmp/RtmpPusher.h"
- #include "Common/config.h"
- #include "Pusher/MediaPusher.h"
- #include "Extension/Frame.h"
- #include "Util/SqlPool.h"
- #include "Network/TcpClient.h"
- #include "Poller/Timer.h"
- #include "Shell.h"
- using namespace toolkit;
- using namespace std;
- namespace MIVA
- {
- class monitor
- {
- private:
- FILE *file = nullptr;
- public:
- monitor();
- ~monitor();
-
-
- static std::shared_ptr<monitor> CreateNew();
-
-
-
- void Destory();
-
-
- int32_t getMemoryUsage();
-
-
- int32_t getCpuUsage();
-
-
- int32_t getCpuTemp();
-
-
- int32_t getGpuTemp();
-
-
- int32_t getAUXTemp();
-
-
- int32_t getA0Temp();
-
-
- int32_t getThermalTemp();
-
-
- int32_t getGpuUsage();
-
-
- int32_t getFdUsage();
- };
- }
|