diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 9d0b8163..35981caf 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -870,7 +870,7 @@ TRACY_API moodycamel::ConcurrentQueue& GetQueue(); struct RPMallocInit { RPMallocInit() { rpmalloc_initialize(); } }; -void InitRPMallocThread() +TRACY_API void InitRPMallocThread() { rpmalloc_initialize(); rpmalloc_thread_initialize(); @@ -948,7 +948,7 @@ TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZo # endif #else -void InitRPMallocThread() +TRACY_API void InitRPMallocThread() { rpmalloc_thread_initialize(); } diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index 56231b1c..4d29e2e2 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -57,8 +57,7 @@ TRACY_API std::atomic& GetLockCounter(); TRACY_API std::atomic& GetGpuCtxCounter(); TRACY_API GpuCtxWrapper& GetGpuCtx(); TRACY_API uint64_t GetThreadHandle(); - -void InitRPMallocThread(); +TRACY_API void InitRPMallocThread(); struct SourceLocationData { @@ -376,7 +375,7 @@ public: # endif const auto thread = GetThreadHandle(); - rpmalloc_thread_initialize(); + InitRPMallocThread(); auto callstack = Callstack( depth ); profiler.m_serialLock.lock(); @@ -397,7 +396,7 @@ public: # endif const auto thread = GetThreadHandle(); - rpmalloc_thread_initialize(); + InitRPMallocThread(); auto callstack = Callstack( depth ); profiler.m_serialLock.lock(); diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index 54db61ec..0df230c8 100644 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -49,7 +49,7 @@ struct ThreadNameData ThreadNameData* next; }; std::atomic& GetThreadNameData(); -void InitRPMallocThread(); +TRACY_API void InitRPMallocThread(); #endif TRACY_API void SetThreadName( const char* name )