mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Super bad thread name resolution.
This commit is contained in:
parent
3032745cce
commit
3ba6046a53
@ -1,6 +1,7 @@
|
||||
#ifndef __TRACYTHREAD_HPP__
|
||||
#define __TRACYTHREAD_HPP__
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <thread>
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user