From 9b1fb01e16b97357943bc6839aa27f00976a3d87 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 Jun 2018 19:38:30 +0200 Subject: [PATCH] Disable Callstack() call if there's no callstack support. --- client/TracyProfiler.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index ff0d91ad..b573fb3e 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -274,10 +274,12 @@ public: static tracy_force_inline void SendCallstackMemory( int depth ) { +#ifdef TRACY_HAS_CALLSTACK auto ptr = Callstack( depth ); auto item = s_profiler.m_serialQueue.push_next(); MemWrite( &item->hdr.type, QueueType::CallstackMemory ); MemWrite( &item->callstackMemory.ptr, (uint64_t)ptr ); +#endif } static bool ShouldExit();