mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Display hw sampling stats in tooltip.
This commit is contained in:
parent
741de5c8fb
commit
24b5e16718
@ -2623,6 +2623,20 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
||||
TextFocused( "Child time:", TimeToString( ipcnt.ext * worker.GetSamplingPeriod() ) );
|
||||
TextFocused( "Child samples:", RealToString( ipcnt.ext ) );
|
||||
}
|
||||
const auto hw = worker.GetHwSampleData( line.addr );
|
||||
if( hw )
|
||||
{
|
||||
ImGui::Separator();
|
||||
if( hw->cycles && hw->retired )
|
||||
{
|
||||
char buf[32];
|
||||
auto end = PrintFloat( buf, buf+32, float( hw->retired ) / hw->cycles, 2 );
|
||||
*end = '\0';
|
||||
TextFocused( "IPC:", buf );
|
||||
}
|
||||
if( hw->cycles ) TextFocused( "Cycles:", RealToString( hw->cycles ) );
|
||||
if( hw->retired ) TextFocused( "Retirements:", RealToString( hw->retired ) );
|
||||
}
|
||||
const auto& stats = *worker.GetSymbolStats( symAddrParents );
|
||||
if( !stats.parents.empty() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user