1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Add UI for control of displaying all symbols.

This commit is contained in:
Bartosz Taudul 2020-03-26 22:22:09 +01:00
parent 696c351e6a
commit 7018caadb9
2 changed files with 10 additions and 0 deletions

View File

@ -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();

View File

@ -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;