diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4382209c..98275495 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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 ) diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 95a24212..6990f9c7 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -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;