30a629ca21
* Tracy profiler integration. * Cleanup URHO3D_TRACY_PROFILING macro. * Fix comment of Tracy build option. * Decouple URHO3D_TRACY_PROFILING exclusively from URHO3D_PROFILING. * Comment explains URHO3D_TRACY_PROFILING * Update * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update * Update TracyCallstack.cpp * Update * Update CMakeLists.txt * Update TracyCallstack.cpp * Update TracyCallstack.cpp Co-authored-by: 1vanK <1vanK@users.noreply.github.com>
31 lines
456 B
C++
31 lines
456 B
C++
#ifndef __TRACYSYSTEM_HPP__
|
|
#define __TRACYSYSTEM_HPP__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "TracyApi.h"
|
|
|
|
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
|
|
|
|
TRACY_API void SetThreadName( const char* name );
|
|
TRACY_API const char* GetThreadName( uint64_t id );
|
|
|
|
}
|
|
|
|
#endif
|