From 909166daf7ea56329a7d5c028779add3a6941a11 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 20 Jun 2018 23:30:19 +0200 Subject: [PATCH] Hide SendCallstackMemory(). --- client/TracyProfiler.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index 649f2b60..f262d5e7 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -236,16 +236,6 @@ public: s_profiler.m_serialLock.unlock(); } - 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(); private: @@ -272,6 +262,16 @@ private: void CalibrateTimer(); void CalibrateDelay(); + 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 tracy_force_inline void SendMemAlloc( QueueType type, const uint64_t thread, const void* ptr, size_t size ) { assert( type == QueueType::MemAlloc || type == QueueType::MemAllocCallstack );