mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Disable Callstack() call if there's no callstack support.
This commit is contained in:
parent
62ef4f225e
commit
9b1fb01e16
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user