Hide SendCallstackMemory().

This commit is contained in:
Bartosz Taudul 2018-06-20 23:30:19 +02:00
parent 8c46ad81d5
commit 909166daf7

View File

@ -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 );