diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 174339bf..0aebe8e3 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1073,8 +1073,6 @@ std::atomic s_symbolThreadGone { false }; static Thread* s_sysTraceThread = nullptr; #endif -TRACY_API bool ProfilerAvailable() { return s_instance != nullptr; } - TRACY_API int64_t GetFrequencyQpc() { #if defined _WIN32 @@ -1301,6 +1299,9 @@ TRACY_API LuaZoneState& GetLuaZoneState() { return s_luaZoneState; } # endif #endif +TRACY_API bool ProfilerAvailable() { return s_instance != nullptr; } +TRACY_API bool ProfilerAllocatorAvailable() { return !RpThreadShutdown; } + Profiler::Profiler() : m_timeBegin( 0 ) , m_mainThread( detail::GetThreadHandleImpl() ) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index 005feb6e..b5d51a2e 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -65,6 +65,7 @@ TRACY_API std::atomic& GetGpuCtxCounter(); TRACY_API GpuCtxWrapper& GetGpuCtx(); TRACY_API uint32_t GetThreadHandle(); TRACY_API bool ProfilerAvailable(); +TRACY_API bool ProfilerAllocatorAvailable(); TRACY_API int64_t GetFrequencyQpc(); struct SourceLocationData