diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-03-26 02:27:23 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-03-26 02:27:23 +0300 |
commit | 2fe1fb974aed1447c3a6bd1ce2b45b86c99a7bde (patch) | |
tree | 518cbb0be52155bb4f1e07f27922cf7cbd30470e | |
parent | 514acf1bac42dc82c2b24c2aa3b86f94b89f419b (diff) |
Display number of entry call stacks in a tooltip.
-rw-r--r-- | server/TracySourceView.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 526c9501..71286426 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2483,11 +2483,17 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, inlineList++; } } + const auto& stats = *worker.GetSymbolStats( symAddrParents ); + assert( !stats.parents.empty() ); if( m_font ) ImGui::PopFont(); ImGui::BeginTooltip(); TextFocused( "Time:", TimeToString( ipcnt * worker.GetSamplingPeriod() ) ); TextFocused( "Sample count:", RealToString( ipcnt ) ); + ImGui::Separator(); + TextFocused( "Entry call stacks:", RealToString( stats.parents.size() ) ); + ImGui::SameLine(); + TextDisabledUnformatted( "(middle click to view)" ); ImGui::EndTooltip(); if( m_font ) ImGui::PushFont( m_font ); |