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

Allow hiding symbols with unknown location.

This commit is contained in:
Bartosz Taudul 2020-02-27 19:45:41 +01:00
parent fea3444625
commit 5f48f8a3aa
2 changed files with 15 additions and 1 deletions

View File

@ -10961,7 +10961,7 @@ void View::DrawCompare()
void View::DrawStatistics()
{
ImGui::SetNextWindowSize( ImVec2( 1000, 600 ), ImGuiCond_FirstUseEver );
ImGui::SetNextWindowSize( ImVec2( 1300, 600 ), ImGuiCond_FirstUseEver );
ImGui::Begin( "Statistics", &m_showStatistics, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
#ifdef TRACY_NO_STATISTICS
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
@ -11191,6 +11191,14 @@ void View::DrawStatistics()
ImGui::Checkbox( ICON_FA_CLOCK " Exclusive", &m_statSelf );
#else
ImGui::Checkbox( "Exclusive", &m_statSelf );
#endif
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
ImGui::Checkbox( ICON_FA_EYE_SLASH " Hide unknown", &m_statHideUnknown );
#else
ImGui::Checkbox( "Hide unknown", &m_statHideUnknown );
#endif
ImGui::SameLine();
ImGui::Spacing();
@ -11291,6 +11299,11 @@ void View::DrawStatistics()
file = m_worker.GetString( sit->second.callFile );
line = sit->second.callLine;
}
if( m_statHideUnknown && file[0] == '[' ) continue;
}
else if( m_statHideUnknown )
{
continue;
}
if( isInline )

View File

@ -346,6 +346,7 @@ private:
bool m_statSampleTime = true;
int m_statMode = 0;
int m_statSampleLocation = 0;
bool m_statHideUnknown = false;
int m_showCallstackFrameAddress = 0;
bool m_showUnknownFrames = true;
bool m_groupChildrenLocations = false;