| 1219 | static ProfilerThreadData& GetProfilerThreadData(); |
| 1220 | static std::atomic<bool> s_isProfilerStarted { false }; |
| 1221 | TRACY_API void StartupProfiler() |
| 1222 | { |
| 1223 | s_profilerData = (ProfilerData*)tracy_malloc( sizeof( ProfilerData ) ); |
| 1224 | new (s_profilerData) ProfilerData(); |
| 1225 | s_profilerData->profiler.SpawnWorkerThreads(); |
| 1226 | GetProfilerThreadData().token = ProducerWrapper( *s_profilerData ); |
| 1227 | s_isProfilerStarted.store( true, std::memory_order_seq_cst ); |
| 1228 | } |
| 1229 | static ProfilerData& GetProfilerData() |
| 1230 | { |
| 1231 | assert( s_profilerData ); |
no test coverage detected