From 7018caadb9de0d33a7d1b0f3093027fff907c14a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 26 Mar 2020 22:22:09 +0100 Subject: [PATCH] Add UI for control of displaying all symbols. --- server/TracyView.cpp | 9 +++++++++ server/TracyView.hpp | 1 + 2 files changed, 10 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4dfebff5..bdc7ba59 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -169,6 +169,7 @@ View::View( FileRead& f, ImFont* fixedWidth, ImFont* smallFont, ImFont* bigFont, m_userData.LoadAnnotations( m_annotations ); if( m_worker.GetCallstackFrameCount() == 0 ) m_showUnknownFrames = false; + if( m_worker.GetCallstackSampleCount() == 0 ) m_showAllSymbols = true; } View::~View() @@ -11670,6 +11671,14 @@ void View::DrawStatistics() ImGui::Checkbox( ICON_FA_EYE_SLASH " Hide unknown", &m_statHideUnknown ); #else ImGui::Checkbox( "Hide unknown", &m_statHideUnknown ); +#endif + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + ImGui::Checkbox( ICON_FA_PUZZLE_PIECE " Show all", &m_showAllSymbols ); +#else + ImGui::Checkbox( "Show all", &m_showAllSymbols ); #endif ImGui::SameLine(); ImGui::Spacing(); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index c798dab4..924b1bae 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -358,6 +358,7 @@ private: int m_statMode = 0; int m_statSampleLocation = 0; bool m_statHideUnknown = true; + bool m_showAllSymbols = false; int m_showCallstackFrameAddress = 0; bool m_showUnknownFrames = true; bool m_groupChildrenLocations = false;