mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Add source preview to entry call stacks window.
This commit is contained in:
parent
9bbffcb67f
commit
4c4fc7197c
@ -15560,7 +15560,7 @@ void View::DrawSampleParents()
|
|||||||
assert( false );
|
assert( false );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if( ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
if( m_showCallstackFrameAddress == 3 )
|
if( m_showCallstackFrameAddress == 3 )
|
||||||
{
|
{
|
||||||
@ -15568,21 +15568,37 @@ void View::DrawSampleParents()
|
|||||||
if( sym )
|
if( sym )
|
||||||
{
|
{
|
||||||
const auto symtxt = m_worker.GetString( sym->file );
|
const auto symtxt = m_worker.GetString( sym->file );
|
||||||
if( !ViewDispatch( symtxt, sym->line, frame.symAddr ) )
|
DrawSourceTooltip( symtxt, sym->line );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DrawSourceTooltip( txt, frame.line );
|
||||||
|
}
|
||||||
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
|
{
|
||||||
|
if( m_showCallstackFrameAddress == 3 )
|
||||||
|
{
|
||||||
|
const auto sym = m_worker.GetSymbolData( frame.symAddr );
|
||||||
|
if( sym )
|
||||||
|
{
|
||||||
|
const auto symtxt = m_worker.GetString( sym->file );
|
||||||
|
if( !ViewDispatch( symtxt, sym->line, frame.symAddr ) )
|
||||||
|
{
|
||||||
|
m_sampleParentBuzzAnim.Enable( bidx, 0.5f );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
m_sampleParentBuzzAnim.Enable( bidx, 0.5f );
|
m_sampleParentBuzzAnim.Enable( bidx, 0.5f );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_sampleParentBuzzAnim.Enable( bidx, 0.5f );
|
if( !ViewDispatch( txt, frame.line, frame.symAddr ) )
|
||||||
}
|
{
|
||||||
}
|
m_sampleParentBuzzAnim.Enable( bidx, 0.5f );
|
||||||
else
|
}
|
||||||
{
|
|
||||||
if( !ViewDispatch( txt, frame.line, frame.symAddr ) )
|
|
||||||
{
|
|
||||||
m_sampleParentBuzzAnim.Enable( bidx, 0.5f );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user