mirror of
https://github.com/wolfpld/tracy
synced 2025-05-07 07:33:51 +00:00
Allow listing symbols, even if no sampling data has been gathered.
This commit is contained in:
parent
e6b0bfc90d
commit
696c351e6a
@ -11414,22 +11414,40 @@ void View::DrawStatistics()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_worker.AreCallstackSamplesReady() && m_worker.GetCallstackSampleCount() > 0 )
|
if( m_worker.AreCallstackSamplesReady() )
|
||||||
{
|
{
|
||||||
|
const auto hasSamples = m_worker.GetCallstackSampleCount() > 0;
|
||||||
|
const auto hasSymbols = m_worker.GetSymbolsCount() > 0;
|
||||||
|
|
||||||
|
if( hasSamples || hasSymbols )
|
||||||
|
{
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
ImGui::RadioButton( ICON_FA_SYRINGE " Instrumentation", &m_statMode, 0 );
|
ImGui::RadioButton( ICON_FA_SYRINGE " Instrumentation", &m_statMode, 0 );
|
||||||
#else
|
#else
|
||||||
ImGui::RadioButton( "Instrumentation", &m_statMode, 0 );
|
ImGui::RadioButton( "Instrumentation", &m_statMode, 0 );
|
||||||
#endif
|
#endif
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
|
if( hasSamples )
|
||||||
|
{
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
ImGui::RadioButton( ICON_FA_EYE_DROPPER " Sampling", &m_statMode, 1 );
|
ImGui::RadioButton( ICON_FA_EYE_DROPPER " Sampling", &m_statMode, 1 );
|
||||||
#else
|
#else
|
||||||
ImGui::RadioButton( "Sampling", &m_statMode, 1 );
|
ImGui::RadioButton( "Sampling", &m_statMode, 1 );
|
||||||
#endif
|
#endif
|
||||||
ImGui::SameLine();
|
}
|
||||||
ImGui::Spacing();
|
else
|
||||||
ImGui::SameLine();
|
{
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
ImGui::RadioButton( ICON_FA_PUZZLE_PIECE " Symbols", &m_statMode, 1 );
|
||||||
|
#else
|
||||||
|
ImGui::RadioButton( "Symbols", &m_statMode, 1 );
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_statMode == 0 )
|
if( m_statMode == 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user