diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index e9023a03..4960422b 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -870,7 +870,7 @@ TRACY_API moodycamel::ConcurrentQueue& GetQueue(); struct RPMallocInit { RPMallocInit() { rpmalloc_initialize(); } }; -TRACY_API void InitRPMallocThread() +void InitRPMallocThread() { rpmalloc_initialize(); rpmalloc_thread_initialize(); @@ -941,14 +941,14 @@ TRACY_API std::atomic& GetLockCounter() { return GetProfilerData().loc TRACY_API std::atomic& GetGpuCtxCounter() { return GetProfilerData().gpuCtxCounter; } TRACY_API GpuCtxWrapper& GetGpuCtx() { return GetProfilerThreadData().gpuCtx; } TRACY_API uint64_t GetThreadHandle() { return detail::GetThreadHandleImpl(); } -TRACY_API std::atomic& GetThreadNameData() { return GetProfilerData().threadNameData; } +std::atomic& GetThreadNameData() { return GetProfilerData().threadNameData; } # ifdef TRACY_ON_DEMAND TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZoneState; } # endif #else -TRACY_API void InitRPMallocThread() +void InitRPMallocThread() { rpmalloc_thread_initialize(); } @@ -1003,7 +1003,7 @@ TRACY_API uint64_t GetThreadHandle() { return detail::GetThreadHandleImpl(); } TRACY_API uint64_t GetThreadHandle() { return s_threadHandle.val; } # endif -TRACY_API std::atomic& GetThreadNameData() { return s_threadNameData; } +std::atomic& GetThreadNameData() { return s_threadNameData; } # ifdef TRACY_ON_DEMAND TRACY_API LuaZoneState& GetLuaZoneState() { return s_luaZoneState; } diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index f2294e6d..5f574b45 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -58,7 +58,7 @@ TRACY_API std::atomic& GetGpuCtxCounter(); TRACY_API GpuCtxWrapper& GetGpuCtx(); TRACY_API uint64_t GetThreadHandle(); -TRACY_API void InitRPMallocThread(); +void InitRPMallocThread(); struct SourceLocationData { diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index 8654ec28..54db61ec 100644 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -48,11 +48,11 @@ struct ThreadNameData const char* name; ThreadNameData* next; }; -TRACY_API std::atomic& GetThreadNameData(); -TRACY_API void InitRPMallocThread(); +std::atomic& GetThreadNameData(); +void InitRPMallocThread(); #endif -void SetThreadName( const char* name ) +TRACY_API void SetThreadName( const char* name ) { #if defined _WIN32 || defined __CYGWIN__ # if defined NTDDI_WIN10_RS2 && NTDDI_VERSION >= NTDDI_WIN10_RS2 @@ -118,7 +118,7 @@ void SetThreadName( const char* name ) #endif } -const char* GetThreadName( uint64_t id ) +TRACY_API const char* GetThreadName( uint64_t id ) { static char buf[256]; #ifdef TRACY_ENABLE diff --git a/common/TracySystem.hpp b/common/TracySystem.hpp index 85b107fd..be147b06 100644 --- a/common/TracySystem.hpp +++ b/common/TracySystem.hpp @@ -72,8 +72,8 @@ static inline uint64_t GetThreadHandle() } #endif -void SetThreadName( const char* name ); -const char* GetThreadName( uint64_t id ); +TRACY_API void SetThreadName( const char* name ); +TRACY_API const char* GetThreadName( uint64_t id ); }