1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Implement getting CPU usage in linux.

This commit is contained in:
Bartosz Taudul
2019-02-24 19:02:49 +01:00
parent 0c75a5178c
commit bafc8a1330
2 changed files with 41 additions and 24 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
#ifndef __TRACYSYSTIME_HPP__
#define __TRACYSYSTIME_HPP__
#if defined _WIN32 || defined __CYGWIN__
#if defined _WIN32 || defined __CYGWIN__ || defined __linux__
# define TRACY_HAS_SYSTIME
#endif
@@ -18,10 +18,10 @@ public:
SysTime();
float Get();
void ReadTimes();
private:
# if defined _WIN32 || defined __CYGWIN__
uint64_t idle, used;
# endif
};
}