mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Super bad thread name resolution.
This commit is contained in:
parent
3032745cce
commit
3ba6046a53
@ -1,6 +1,7 @@
|
|||||||
#ifndef __TRACYTHREAD_HPP__
|
#ifndef __TRACYTHREAD_HPP__
|
||||||
#define __TRACYTHREAD_HPP__
|
#define __TRACYTHREAD_HPP__
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
@ -24,6 +25,13 @@ namespace tracy
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline const char* GetThreadName( uint64_t id )
|
||||||
|
{
|
||||||
|
static char buf[64];
|
||||||
|
sprintf( buf, "%" PRIu64, id );
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user