mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Add source preview to entry call stacks window.
This commit is contained in:
parent
9bbffcb67f
commit
4c4fc7197c
@ -15560,6 +15560,21 @@ void View::DrawSampleParents()
|
|||||||
assert( false );
|
assert( false );
|
||||||
break;
|
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( ImGui::IsItemClicked( 1 ) )
|
||||||
{
|
{
|
||||||
if( m_showCallstackFrameAddress == 3 )
|
if( m_showCallstackFrameAddress == 3 )
|
||||||
@ -15586,6 +15601,7 @@ void View::DrawSampleParents()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if( indentVal != 0.f )
|
if( indentVal != 0.f )
|
||||||
{
|
{
|
||||||
ImGui::Unindent( indentVal );
|
ImGui::Unindent( indentVal );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user