1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add no-statistics guards.

This commit is contained in:
Bartosz Taudul
2021-04-18 22:59:10 +02:00
parent cbf8550a45
commit e189f596ac
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -13801,6 +13801,7 @@ void View::DrawInfo()
}
TextFocused( "Call stack samples:", RealToString( m_worker.GetCallstackSampleCount() ) );
TextFocused( "Ghost zones:", RealToString( m_worker.GetGhostZonesCount() ) );
#ifndef TRACY_NO_STATISTICS
TextFocused( "Child sample symbols:", RealToString( m_worker.GetChildSamplesCountSyms() ) );
if( ImGui::IsItemHovered() )
{
@@ -13808,6 +13809,7 @@ void View::DrawInfo()
TextFocused( "Child samples:", RealToString( m_worker.GetChildSamplesCountFull() ) );
ImGui::EndTooltip();
}
#endif
TextFocused( "Frame images:", RealToString( ficnt ) );
if( ficnt != 0 && ImGui::IsItemHovered() )
{