mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Add source preview to call stack window.
This commit is contained in:
parent
e2be45c0ba
commit
895a63b41a
@ -13449,6 +13449,21 @@ void View::DrawCallstackWindow()
|
||||
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 )
|
||||
@ -13475,6 +13490,7 @@ void View::DrawCallstackWindow()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if( indentVal != 0.f )
|
||||
{
|
||||
ImGui::Unindent( indentVal );
|
||||
|
Loading…
Reference in New Issue
Block a user