1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Disable Callstack() call if there's no callstack support.

This commit is contained in:
Bartosz Taudul 2018-06-19 19:38:30 +02:00
parent 62ef4f225e
commit 9b1fb01e16

View File

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