mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-07 05:49:18 +00:00
Add tooltip for unknown flame graph blocks.
This commit is contained in:
@@ -668,6 +668,25 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct
|
||||
ViewDispatch( file, line, symAddr );
|
||||
}
|
||||
}
|
||||
else if( symAddr == 0 )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
if( item.name.Active() && strcmp( name, "[unknown]" ) != 0 )
|
||||
{
|
||||
TextFocused( "Image:", name );
|
||||
ImGui::Separator();
|
||||
}
|
||||
TextFocused( "Execution time:", TimeToString( item.time ) );
|
||||
if( !item.children.empty() )
|
||||
{
|
||||
TextFocused( "Self time:", TimeToString( self ) );
|
||||
char buf[64];
|
||||
PrintStringPercent( buf, 100.f * self / item.time );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( buf );
|
||||
}
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user