1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Implement on-demand Lua zone capture.

This commit is contained in:
Bartosz Taudul
2018-07-12 12:53:35 +02:00
parent fbc5556ddd
commit b11695111d
2 changed files with 57 additions and 12 deletions
+5
View File
@@ -179,6 +179,11 @@ struct ThreadNameData;
std::atomic<ThreadNameData*> init_order(104) s_threadNameData( nullptr );
#endif
#ifdef TRACY_ON_DEMAND
thread_local uint32_t init_order(104) s_luaZoneCounter( 0 );
thread_local bool init_order(104) s_luaZoneActive( false );
#endif
Profiler init_order(105) s_profiler;