mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
Display omitted external frame counts.
This commit is contained in:
parent
27d7939cc1
commit
c2b4e81493
@ -152,7 +152,7 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
ImGui::TableSetupColumn( "Image" );
|
ImGui::TableSetupColumn( "Image" );
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
|
|
||||||
bool external = false;
|
int external = 0;
|
||||||
int fidx = 0;
|
int fidx = 0;
|
||||||
int bidx = 0;
|
int bidx = 0;
|
||||||
for( auto& entry : cs )
|
for( auto& entry : cs )
|
||||||
@ -162,7 +162,7 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
{
|
{
|
||||||
if( !m_showExternalFrames )
|
if( !m_showExternalFrames )
|
||||||
{
|
{
|
||||||
external = true;
|
external++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
@ -209,22 +209,29 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
if( !m_showExternalFrames )
|
if( !m_showExternalFrames )
|
||||||
{
|
{
|
||||||
if( f == fsz-1 ) fidx++;
|
if( f == fsz-1 ) fidx++;
|
||||||
external = true;
|
external++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( external )
|
if( external != 0 )
|
||||||
{
|
{
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::PushFont( m_smallFont );
|
ImGui::PushFont( m_smallFont );
|
||||||
TextDisabledUnformatted( "external" );
|
TextDisabledUnformatted( "external" );
|
||||||
ImGui::PopFont();
|
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
TextDisabledUnformatted( "\xe2\x80\xa6" );
|
if( external == 1 )
|
||||||
external = false;
|
{
|
||||||
|
TextDisabledUnformatted( "1 frame" );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::TextDisabled( "%i frames", external );
|
||||||
|
}
|
||||||
|
ImGui::PopFont();
|
||||||
|
external = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,9 +406,16 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::PushFont( m_smallFont );
|
ImGui::PushFont( m_smallFont );
|
||||||
TextDisabledUnformatted( "external" );
|
TextDisabledUnformatted( "external" );
|
||||||
ImGui::PopFont();
|
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
TextDisabledUnformatted( "\xe2\x80\xa6" );
|
if( external == 1 )
|
||||||
|
{
|
||||||
|
TextDisabledUnformatted( "1 frame" );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::TextDisabled( "%i frames", external );
|
||||||
|
}
|
||||||
|
ImGui::PopFont();
|
||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user