tracy/common/TracySystem.hpp

33 lines
508 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 uint64_t GetThreadHandleImpl();
}
#ifdef TRACY_ENABLE
TRACY_API uint64_t GetThreadHandle();
#else
static inline uint64_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( 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