mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 21:23:52 +00:00
Direct selection of find zone callstack.
This commit is contained in:
parent
151eadc69e
commit
14b469f219
@ -11074,11 +11074,20 @@ void View::DrawFindZone()
|
|||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Text( "%s / %s", RealToString( m_findZone.selCs + 1 ), RealToString( gsz ) );
|
ImGui::Text( "%s / %s", RealToString( m_findZone.selCs + 1 ), RealToString( gsz ) );
|
||||||
|
if( ImGui::IsItemClicked() ) ImGui::OpenPopup( "FindZoneCallstackPopup" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if( ImGui::SmallButton( " " ICON_FA_CARET_RIGHT " " ) )
|
if( ImGui::SmallButton( " " ICON_FA_CARET_RIGHT " " ) )
|
||||||
{
|
{
|
||||||
m_findZone.selCs = std::min<int>( m_findZone.selCs + 1, gsz - 1 );
|
m_findZone.selCs = std::min<int>( m_findZone.selCs + 1, gsz - 1 );
|
||||||
}
|
}
|
||||||
|
if( ImGui::BeginPopup( "FindZoneCallstackPopup" ) )
|
||||||
|
{
|
||||||
|
int sel = m_findZone.selCs + 1;
|
||||||
|
ImGui::SetNextItemWidth( 120 );
|
||||||
|
const bool clicked = ImGui::InputInt( "##findZoneCallstack", &sel, 1, 100, ImGuiInputTextFlags_EnterReturnsTrue );
|
||||||
|
if( clicked ) m_findZone.selCs = std::min( std::max( sel, 1 ), int( gsz ) ) - 1;
|
||||||
|
ImGui::EndPopup();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextFocused( "Count:", RealToString( group->second.zones.size() ) );
|
TextFocused( "Count:", RealToString( group->second.zones.size() ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user