Separate IPC, cache and branch data in tooltip.

This commit is contained in:
Bartosz Taudul 2021-05-20 19:56:23 +02:00
parent c6f071a66a
commit 3ba82ba4d6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -2625,6 +2625,8 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
}
const auto hw = worker.GetHwSampleData( line.addr );
if( hw )
{
if( hw->cycles || hw->retired )
{
ImGui::Separator();
if( hw->cycles && hw->retired )
@ -2636,6 +2638,10 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
}
if( hw->cycles ) TextFocused( "Cycles:", RealToString( hw->cycles ) );
if( hw->retired ) TextFocused( "Retirements:", RealToString( hw->retired ) );
}
if( hw->cacheRef || hw->cacheMiss )
{
ImGui::Separator();
if( hw->cacheRef )
{
char buf[32];
@ -2645,6 +2651,10 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
TextFocused( "Cache references:", RealToString( hw->cacheRef ) );
}
if( hw->cacheMiss ) TextFocused( "Cache misses:", RealToString( hw->cacheMiss ) );
}
if( hw->branchRetired || hw->branchMiss )
{
ImGui::Separator();
if( hw->branchRetired )
{
char buf[32];
@ -2655,6 +2665,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
}
if( hw->branchMiss ) TextFocused( "Branch mispredictions:", RealToString( hw->branchMiss ) );
}
}
const auto& stats = *worker.GetSymbolStats( symAddrParents );
if( !stats.parents.empty() )
{