mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-14 04:45:22 +00:00
Add support for parent callstacks to GetCallstackJson.
This commit is contained in:
@@ -940,7 +940,11 @@ nlohmann::json View::GetCallstackJson( const CallstackFrameId* data, size_t size
|
||||
while( data < end )
|
||||
{
|
||||
auto& entry = *data++;
|
||||
#ifdef TRACY_NO_STATISTICS
|
||||
auto frameData = m_worker.GetCallstackFrame( entry );
|
||||
#else
|
||||
auto frameData = entry.custom ? m_worker.GetParentCallstackFrame( entry ) : m_worker.GetCallstackFrame( entry );
|
||||
#endif
|
||||
if( !frameData )
|
||||
{
|
||||
frames.push_back( { "pointer", m_worker.GetCanonicalPointer( entry ) } );
|
||||
|
||||
Reference in New Issue
Block a user