TracySystem.hpp 456 B

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