From 3ba6046a53f01e4b41a3326a7cbb8c477dd57d34 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 22 Sep 2017 01:50:14 +0200 Subject: [PATCH] Super bad thread name resolution. --- client/TracyThread.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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