mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Don't display zone names in find zone menu zones list.
This commit is contained in:
parent
2ef9fe0743
commit
880eb7cbdd
@ -3717,10 +3717,8 @@ void View::DrawFindZone()
|
|||||||
|
|
||||||
if( expand )
|
if( expand )
|
||||||
{
|
{
|
||||||
ImGui::Columns( 3, hdrString );
|
ImGui::Columns( 2, hdrString );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Name" );
|
|
||||||
ImGui::NextColumn();
|
|
||||||
ImGui::Text( "Time from start" );
|
ImGui::Text( "Time from start" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "Execution time" );
|
ImGui::Text( "Execution time" );
|
||||||
@ -3735,7 +3733,7 @@ void View::DrawFindZone()
|
|||||||
ImGui::PushID( ev );
|
ImGui::PushID( ev );
|
||||||
|
|
||||||
auto& srcloc = m_worker.GetSourceLocation( ev->srcloc );
|
auto& srcloc = m_worker.GetSourceLocation( ev->srcloc );
|
||||||
if( ImGui::Selectable( m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ), m_zoneInfoWindow == ev, ImGuiSelectableFlags_SpanAllColumns ) )
|
if( ImGui::Selectable( TimeToString( ev->start - m_worker.GetFrameBegin( 0 ) ), m_zoneInfoWindow == ev, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||||
{
|
{
|
||||||
m_zoneInfoWindow = ev;
|
m_zoneInfoWindow = ev;
|
||||||
}
|
}
|
||||||
@ -3749,9 +3747,6 @@ void View::DrawFindZone()
|
|||||||
ZoneTooltip( *ev );
|
ZoneTooltip( *ev );
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::NextColumn();
|
|
||||||
|
|
||||||
ImGui::Text( "%s", TimeToString( ev->start - m_worker.GetFrameBegin( 0 ) ) );
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "%s", TimeToString( timespan ) );
|
ImGui::Text( "%s", TimeToString( timespan ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user