Group time/samples data by local and child.

This commit is contained in:
Bartosz Taudul 2021-04-18 20:39:41 +02:00
parent a5afa2cb4e
commit 2009f63e32
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1434,10 +1434,16 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, const unordered_flat_
if( ImGui::IsItemHovered() ) if( ImGui::IsItemHovered() )
{ {
ImGui::BeginTooltip(); ImGui::BeginTooltip();
if( fit->second.local ) TextFocused( "Local time:", TimeToString( fit->second.local * worker.GetSamplingPeriod() ) ); if( fit->second.local )
if( fit->second.ext ) TextFocused( "Child time:", TimeToString( fit->second.ext * worker.GetSamplingPeriod() ) ); {
if( fit->second.local ) TextFocused( "Local samples:", RealToString( fit->second.local ) ); TextFocused( "Local time:", TimeToString( fit->second.local * worker.GetSamplingPeriod() ) );
if( fit->second.ext ) TextFocused( "Child samples:", RealToString( fit->second.ext ) ); TextFocused( "Local samples:", RealToString( fit->second.local ) );
}
if( fit->second.ext )
{
TextFocused( "Child time:", TimeToString( fit->second.ext * worker.GetSamplingPeriod() ) );
TextFocused( "Child samples:", RealToString( fit->second.ext ) );
}
ImGui::EndTooltip(); ImGui::EndTooltip();
} }
ImGui::SameLine(); ImGui::SameLine();
@ -2535,10 +2541,16 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
if( m_font ) ImGui::PopFont(); if( m_font ) ImGui::PopFont();
ImGui::BeginTooltip(); ImGui::BeginTooltip();
if( ipcnt.local ) TextFocused( "Local time:", TimeToString( ipcnt.local * worker.GetSamplingPeriod() ) ); if( ipcnt.local )
if( ipcnt.ext ) TextFocused( "Child time:", TimeToString( ipcnt.ext * worker.GetSamplingPeriod() ) ); {
if( ipcnt.local ) TextFocused( "Local samples:", RealToString( ipcnt.local ) ); TextFocused( "Local time:", TimeToString( ipcnt.local * worker.GetSamplingPeriod() ) );
if( ipcnt.ext ) TextFocused( "Child samples:", RealToString( ipcnt.ext ) ); TextFocused( "Local samples:", RealToString( ipcnt.local ) );
}
if( ipcnt.ext )
{
TextFocused( "Child time:", TimeToString( ipcnt.ext * worker.GetSamplingPeriod() ) );
TextFocused( "Child samples:", RealToString( ipcnt.ext ) );
}
ImGui::Separator(); ImGui::Separator();
TextFocused( "Entry call stacks:", RealToString( stats.parents.size() ) ); TextFocused( "Entry call stacks:", RealToString( stats.parents.size() ) );
ImGui::SameLine(); ImGui::SameLine();