| 1 | #ifndef __TRACYSYSTEM_HPP__ |
| 2 | #define __TRACYSYSTEM_HPP__ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #include "TracyApi.h" |
| 7 | |
| 8 | namespace tracy |
| 9 | { |
| 10 | |
| 11 | namespace detail |
| 12 | { |
| 13 | TRACY_API uint32_t GetThreadHandleImpl(); |
| 14 | } |
| 15 | |
| 16 | #ifdef TRACY_ENABLE |
| 17 | TRACY_API uint32_t GetThreadHandle(); |
| 18 | #else |
| 19 | static inline uint32_t GetThreadHandle() |
| 20 | { |
| 21 | return detail::GetThreadHandleImpl(); |
| 22 | } |
| 23 | #endif |
| 24 | |
| 25 | TRACY_API void SetThreadName( const char* name ); |
| 26 | TRACY_API const char* GetThreadName( uint32_t id ); |
| 27 | |
| 28 | TRACY_API const char* GetEnvVar(const char* name); |
| 29 | |
| 30 | } |
| 31 | |
| 32 | #endif |