mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add "self time" checkbox to find zone menu.
This commit is contained in:
@@ -4819,6 +4819,11 @@ void View::DrawFindZone()
|
||||
m_findZone.ResetMatch();
|
||||
}
|
||||
}
|
||||
if( m_findZone.scheduleResetMatch )
|
||||
{
|
||||
m_findZone.scheduleResetMatch = false;
|
||||
m_findZone.ResetMatch();
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
@@ -4907,6 +4912,11 @@ void View::DrawFindZone()
|
||||
ImGui::Text( "Show total time taken by calls in each bin instead of call counts." );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Checkbox( "Self time", &m_findZone.selfTime ) )
|
||||
{
|
||||
m_findZone.scheduleResetMatch = true;
|
||||
}
|
||||
|
||||
ImGui::TextDisabled( "Time range:" );
|
||||
ImGui::SameLine();
|
||||
|
||||
Reference in New Issue
Block a user