diff --git a/client/TracyThread.hpp b/client/TracyThread.hpp index 4aac0d46..a5d7dc06 100755 --- a/client/TracyThread.hpp +++ b/client/TracyThread.hpp @@ -1,6 +1,7 @@ #ifndef __TRACYTHREAD_HPP__ #define __TRACYTHREAD_HPP__ +#include #include #include @@ -24,6 +25,13 @@ namespace tracy #endif } + static inline const char* GetThreadName( uint64_t id ) + { + static char buf[64]; + sprintf( buf, "%" PRIu64, id ); + return buf; + } + } #endif