1
0
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:
Bartosz Taudul 2021-03-27 14:09:40 +01:00
parent 5ebffe388a
commit 9bbffcb67f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -16647,6 +16647,9 @@ void View::DrawFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrame
fileName = m_worker.GetString( frame.file );
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
}
if( ImGui::IsItemHovered() )
{
DrawSourceTooltip( fileName, frame.line );
if( ImGui::IsItemClicked( 1 ) )
{
if( !ViewDispatch( fileName, frame.line, frame.symAddr ) )
@ -16654,6 +16657,7 @@ void View::DrawFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrame
m_callstackTreeBuzzAnim.Enable( idx, 0.5f );
}
}
}
ImGui::SameLine();
if( v.children.empty() )