mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Add source tooltip in memory frame trees.
This commit is contained in:
parent
5ebffe388a
commit
9bbffcb67f
@ -16647,11 +16647,15 @@ void View::DrawFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrame
|
|||||||
fileName = m_worker.GetString( frame.file );
|
fileName = m_worker.GetString( frame.file );
|
||||||
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
|
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
|
||||||
}
|
}
|
||||||
if( ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
if( !ViewDispatch( fileName, frame.line, frame.symAddr ) )
|
DrawSourceTooltip( fileName, frame.line );
|
||||||
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
{
|
{
|
||||||
m_callstackTreeBuzzAnim.Enable( idx, 0.5f );
|
if( !ViewDispatch( fileName, frame.line, frame.symAddr ) )
|
||||||
|
{
|
||||||
|
m_callstackTreeBuzzAnim.Enable( idx, 0.5f );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user