mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +00:00
Add UI for control of displaying all symbols.
This commit is contained in:
parent
696c351e6a
commit
7018caadb9
@ -169,6 +169,7 @@ View::View( FileRead& f, ImFont* fixedWidth, ImFont* smallFont, ImFont* bigFont,
|
|||||||
m_userData.LoadAnnotations( m_annotations );
|
m_userData.LoadAnnotations( m_annotations );
|
||||||
|
|
||||||
if( m_worker.GetCallstackFrameCount() == 0 ) m_showUnknownFrames = false;
|
if( m_worker.GetCallstackFrameCount() == 0 ) m_showUnknownFrames = false;
|
||||||
|
if( m_worker.GetCallstackSampleCount() == 0 ) m_showAllSymbols = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
View::~View()
|
View::~View()
|
||||||
@ -11670,6 +11671,14 @@ void View::DrawStatistics()
|
|||||||
ImGui::Checkbox( ICON_FA_EYE_SLASH " Hide unknown", &m_statHideUnknown );
|
ImGui::Checkbox( ICON_FA_EYE_SLASH " Hide unknown", &m_statHideUnknown );
|
||||||
#else
|
#else
|
||||||
ImGui::Checkbox( "Hide unknown", &m_statHideUnknown );
|
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
|
#endif
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
@ -358,6 +358,7 @@ private:
|
|||||||
int m_statMode = 0;
|
int m_statMode = 0;
|
||||||
int m_statSampleLocation = 0;
|
int m_statSampleLocation = 0;
|
||||||
bool m_statHideUnknown = true;
|
bool m_statHideUnknown = true;
|
||||||
|
bool m_showAllSymbols = false;
|
||||||
int m_showCallstackFrameAddress = 0;
|
int m_showCallstackFrameAddress = 0;
|
||||||
bool m_showUnknownFrames = true;
|
bool m_showUnknownFrames = true;
|
||||||
bool m_groupChildrenLocations = false;
|
bool m_groupChildrenLocations = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user