2017-09-10 15:46:20 +00:00
|
|
|
#ifndef __TRACYSYSTEM_HPP__
|
|
|
|
#define __TRACYSYSTEM_HPP__
|
|
|
|
|
2017-09-25 19:13:59 +00:00
|
|
|
#include <stdint.h>
|
2017-09-10 15:46:20 +00:00
|
|
|
|
2019-06-07 13:56:46 +00:00
|
|
|
#include "TracyApi.h"
|
|
|
|
|
2017-09-10 15:46:20 +00:00
|
|
|
namespace tracy
|
|
|
|
{
|
|
|
|
|
2019-06-25 13:44:49 +00:00
|
|
|
namespace detail
|
|
|
|
{
|
2020-02-11 13:40:49 +00:00
|
|
|
TRACY_API uint64_t GetThreadHandleImpl();
|
2019-06-25 13:44:49 +00:00
|
|
|
}
|
2017-09-25 22:46:46 +00:00
|
|
|
|
2019-06-25 13:44:49 +00:00
|
|
|
#ifdef TRACY_ENABLE
|
2019-06-26 17:32:52 +00:00
|
|
|
TRACY_API uint64_t GetThreadHandle();
|
2019-06-25 13:44:49 +00:00
|
|
|
#else
|
|
|
|
static inline uint64_t GetThreadHandle()
|
|
|
|
{
|
|
|
|
return detail::GetThreadHandleImpl();
|
|
|
|
}
|
2019-06-24 17:18:52 +00:00
|
|
|
#endif
|
|
|
|
|
2020-01-25 15:17:03 +00:00
|
|
|
TRACY_API void SetThreadName( const char* name );
|
|
|
|
TRACY_API const char* GetThreadName( uint64_t id );
|
2017-09-10 15:46:20 +00:00
|
|
|
|
2021-04-09 22:33:01 +00:00
|
|
|
TRACY_API const char* GetEnvVar(const char* name);
|
|
|
|
|
2017-09-10 15:46:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|