Fixing some of the copy-paste errors

This commit is contained in:
Andrey Voroshilov 2020-07-12 10:12:50 -07:00
parent 3ae84647c4
commit 4c397ebe1e
2 changed files with 3 additions and 3 deletions

View File

@ -1025,8 +1025,8 @@ thread_local LuaZoneState init_order(104) s_luaZoneState { 0, false };
static Profiler init_order(105) s_profiler; static Profiler init_order(105) s_profiler;
TRACY_API moodycamel::ConcurrentQueue<QueueItem>::ExplicitProducer* GetToken() { return s_token.ptr; } TRACY_API moodycamel::ConcurrentQueue<QueueItem>::ExplicitProducer* GetToken() { return s_token.ptr; }
TRACY_API moodycamel::ConcurrentQueue<QueueItem>& GetQueue() { return s_queue; }
TRACY_API Profiler& GetProfiler() { return s_profiler; } TRACY_API Profiler& GetProfiler() { return s_profiler; }
TRACY_API moodycamel::ConcurrentQueue<QueueItem>& GetQueue() { return s_queue; }
TRACY_API int64_t GetInitTime() { return s_initTime.val; } TRACY_API int64_t GetInitTime() { return s_initTime.val; }
TRACY_API std::atomic<uint32_t>& GetLockCounter() { return s_lockCounter; } TRACY_API std::atomic<uint32_t>& GetLockCounter() { return s_lockCounter; }
TRACY_API std::atomic<uint8_t>& GetGpuCtxCounter() { return s_gpuCtxCounter; } TRACY_API std::atomic<uint8_t>& GetGpuCtxCounter() { return s_gpuCtxCounter; }
@ -1105,7 +1105,7 @@ Profiler::Profiler()
m_userPort = atoi( userPort ); m_userPort = atoi( userPort );
} }
#if !defined(TRACY_DELAYED_INIT) || !defined(TRACY_NONSTATIC_PROFILER) #if !defined(TRACY_DELAYED_INIT) || !defined(TRACY_MANUAL_LIFETIME)
SpawnWorkerThreads(); SpawnWorkerThreads();
#endif #endif
} }

View File

@ -41,7 +41,7 @@
namespace tracy namespace tracy
{ {
#if defined(TRACY_DELAYED_INIT) && defined(TRACY_NONSTATIC_PROFILER) #if defined(TRACY_DELAYED_INIT) && defined(TRACY_MANUAL_LIFETIME)
void StartupProfiler(); void StartupProfiler();
void ShutdownProfiler(); void ShutdownProfiler();
#endif #endif