diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index e8f16a7a..03306704 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -961,7 +961,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_mapGetSamplingPeriod() ) ); + TextFocused( "Sample count:", RealToString( ipcnt ) ); + ImGui::EndTooltip(); + if( m_font ) ImGui::PushFont( m_font ); + } } ImGui::SameLine( 0, ty ); } @@ -1103,7 +1112,16 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip } else { - PrintPercentage( 100.f * ipcnt / iptotal ); + if( PrintPercentage( 100.f * ipcnt / iptotal ) ) + { + if( m_font ) ImGui::PopFont(); + ImGui::BeginTooltip(); + TextFocused( "Time:", TimeToString( ipcnt * worker.GetSamplingPeriod() ) ); + TextFocused( "Sample count:", RealToString( ipcnt ) ); + ImGui::EndTooltip(); + if( m_font ) ImGui::PushFont( m_font ); + } + } ImGui::SameLine( 0, ty ); }