mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +00:00
Allow hiding symbols with unknown location.
This commit is contained in:
parent
fea3444625
commit
5f48f8a3aa
@ -10961,7 +10961,7 @@ void View::DrawCompare()
|
|||||||
|
|
||||||
void View::DrawStatistics()
|
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 );
|
ImGui::Begin( "Statistics", &m_showStatistics, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
|
||||||
#ifdef TRACY_NO_STATISTICS
|
#ifdef TRACY_NO_STATISTICS
|
||||||
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
|
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 );
|
ImGui::Checkbox( ICON_FA_CLOCK " Exclusive", &m_statSelf );
|
||||||
#else
|
#else
|
||||||
ImGui::Checkbox( "Exclusive", &m_statSelf );
|
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
|
#endif
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
@ -11291,6 +11299,11 @@ void View::DrawStatistics()
|
|||||||
file = m_worker.GetString( sit->second.callFile );
|
file = m_worker.GetString( sit->second.callFile );
|
||||||
line = sit->second.callLine;
|
line = sit->second.callLine;
|
||||||
}
|
}
|
||||||
|
if( m_statHideUnknown && file[0] == '[' ) continue;
|
||||||
|
}
|
||||||
|
else if( m_statHideUnknown )
|
||||||
|
{
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( isInline )
|
if( isInline )
|
||||||
|
@ -346,6 +346,7 @@ private:
|
|||||||
bool m_statSampleTime = true;
|
bool m_statSampleTime = true;
|
||||||
int m_statMode = 0;
|
int m_statMode = 0;
|
||||||
int m_statSampleLocation = 0;
|
int m_statSampleLocation = 0;
|
||||||
|
bool m_statHideUnknown = 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