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

Change TRACY_DISABLE to TRACY_ENABLE.

By default tracy is now disabled.
This commit is contained in:
Bartosz Taudul
2017-10-16 21:34:39 +02:00
parent 518568a513
commit 8a6e4d2971
4 changed files with 16 additions and 4 deletions
+4 -2
View File
@@ -1,3 +1,5 @@
#ifdef TRACY_ENABLE
#ifdef _MSC_VER
# include <winsock2.h>
# include <windows.h>
@@ -73,9 +75,7 @@ static moodycamel::ConcurrentQueue<QueueItem> init_order(103) s_queue( QueuePrea
static thread_local moodycamel::ProducerToken init_order(104) s_token_detail( s_queue );
thread_local ProducerWrapper init_order(105) s_token { s_queue.get_explicit_producer( s_token_detail ) };
#ifndef TRACY_DISABLE
static Profiler init_order(106) s_profiler;
#endif
static Profiler* s_instance = nullptr;
static Thread* s_thread = nullptr;
@@ -424,3 +424,5 @@ void Profiler::CalibrateDelay()
}
}
#endif