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

Automatically create profiler instance.

This commit is contained in:
Bartosz Taudul
2017-09-18 19:08:54 +02:00
parent de66ec5332
commit 0331d548d2
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -32,6 +32,10 @@ static moodycamel::ProducerToken& GetToken()
extern const char* PointerCheckA;
const char* PointerCheckB = "tracy";
#ifndef TRACY_DISABLE
Profiler s_profiler;
#endif
static Profiler* s_instance = nullptr;
Profiler::Profiler()