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

Don't display hw samples as time in files list.

This commit is contained in:
Bartosz Taudul 2021-06-20 00:14:19 +02:00
parent 52708268fe
commit 80e1b0c2cf
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1637,6 +1637,8 @@ void SourceView::RenderSymbolSourceView( const AddrStat& iptotal, const unordere
auto fit = fileCounts.find( v.first ); auto fit = fileCounts.find( v.first );
assert( fit != fileCounts.end() ); assert( fit != fileCounts.end() );
if( fit->second.local + fit->second.ext != 0 ) if( fit->second.local + fit->second.ext != 0 )
{
if( m_cost == 0 )
{ {
if( m_childCalls ) if( m_childCalls )
{ {
@ -1661,6 +1663,11 @@ void SourceView::RenderSymbolSourceView( const AddrStat& iptotal, const unordere
} }
ImGui::EndTooltip(); ImGui::EndTooltip();
} }
}
else
{
ImGui::TextUnformatted( RealToString( fit->second.local ) );
}
ImGui::SameLine(); ImGui::SameLine();
if( m_childCalls ) if( m_childCalls )
{ {