mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Track CPU usage also on cygwin.
This commit is contained in:
parent
d0c1b9bf67
commit
0b9fa8f3c8
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
#ifdef TRACY_HAS_SYSTIME
|
#ifdef TRACY_HAS_SYSTIME
|
||||||
|
|
||||||
# ifdef _WIN32
|
# if defined _WIN32 || defined __CYGWIN__
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
# ifdef _WIN32
|
# if defined _WIN32 || defined __CYGWIN__
|
||||||
|
|
||||||
static inline uint64_t ConvertTime( const FILETIME& t )
|
static inline uint64_t ConvertTime( const FILETIME& t )
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __TRACYSYSTIME_HPP__
|
#ifndef __TRACYSYSTIME_HPP__
|
||||||
#define __TRACYSYSTIME_HPP__
|
#define __TRACYSYSTIME_HPP__
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
# define TRACY_HAS_SYSTIME
|
# define TRACY_HAS_SYSTIME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ public:
|
|||||||
float Get();
|
float Get();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
# ifdef _WIN32
|
# if defined _WIN32 || defined __CYGWIN__
|
||||||
uint64_t idle, used;
|
uint64_t idle, used;
|
||||||
# endif
|
# endif
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user