tracy/public/common/TracySystem.hpp

33 lines
510 B
C++
Raw Normal View History

2017-09-10 15:46:20 +00:00
#ifndef __TRACYSYSTEM_HPP__
#define __TRACYSYSTEM_HPP__
#include <stdint.h>
2017-09-10 15:46:20 +00:00
#include "TracyApi.h"
2017-09-10 15:46:20 +00:00
namespace tracy
{
namespace detail
{
TRACY_API uint32_t GetThreadHandleImpl();
}
#ifdef TRACY_ENABLE
TRACY_API uint32_t GetThreadHandle();
#else
static inline uint32_t GetThreadHandle()
{
return detail::GetThreadHandleImpl();
}
#endif
2020-01-25 15:17:03 +00:00
TRACY_API void SetThreadName( const char* name );
TRACY_API const char* GetThreadName( uint32_t id );
2017-09-10 15:46:20 +00:00
2023-12-20 12:15:42 +00:00
TRACY_API const char* GetEnvVar( const char* name );
2021-04-09 22:33:01 +00:00
2017-09-10 15:46:20 +00:00
}
#endif