mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Use combo box for smart/entry/sample location selection.
This commit is contained in:
parent
8d149c59f8
commit
5955efabb0
@ -11540,11 +11540,9 @@ void View::DrawStatistics()
|
||||
ImGui::SameLine();
|
||||
ImGui::TextUnformatted( "Location:" );
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton( "Smart", &m_statSampleLocation, 2 );
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton( "Entry", &m_statSampleLocation, 0 );
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton( "Sample", &m_statSampleLocation, 1 );
|
||||
const char* locationTable = "Entry\0Sample\0Smart";
|
||||
ImGui::SetNextItemWidth( ImGui::CalcTextSize( "Sample" ).x + ImGui::GetTextLineHeight() * 2 );
|
||||
ImGui::Combo( "##location", &m_statSampleLocation, locationTable );
|
||||
ImGui::Separator();
|
||||
|
||||
const auto& symMap = m_worker.GetSymbolMap();
|
||||
|
Loading…
Reference in New Issue
Block a user