MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / StartupProfiler

Function StartupProfiler

Source/ThirdParty/tracy/client/TracyProfiler.cpp:1221–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219static ProfilerThreadData& GetProfilerThreadData();
1220static std::atomic<bool> s_isProfilerStarted { false };
1221TRACY_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}
1229static ProfilerData& GetProfilerData()
1230{
1231 assert( s_profilerData );

Callers 1

Calls 3

tracy_mallocFunction · 0.85
ProducerWrapperClass · 0.85
SpawnWorkerThreadsMethod · 0.80

Tested by

no test coverage detected