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

Add source preview to entry call stacks window.

This commit is contained in:
Bartosz Taudul 2021-03-27 14:15:18 +01:00
parent 9bbffcb67f
commit 4c4fc7197c
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -15560,6 +15560,21 @@ void View::DrawSampleParents()
assert( false );
break;
}
if( ImGui::IsItemHovered() )
{
if( m_showCallstackFrameAddress == 3 )
{
const auto sym = m_worker.GetSymbolData( frame.symAddr );
if( sym )
{
const auto symtxt = m_worker.GetString( sym->file );
DrawSourceTooltip( symtxt, sym->line );
}
}
else
{
DrawSourceTooltip( txt, frame.line );
}
if( ImGui::IsItemClicked( 1 ) )
{
if( m_showCallstackFrameAddress == 3 )
@ -15586,6 +15601,7 @@ void View::DrawSampleParents()
}
}
}
}
if( indentVal != 0.f )
{
ImGui::Unindent( indentVal );