Display number of entry call stacks in a tooltip.

This commit is contained in:
Bartosz Taudul 2021-03-26 00:27:23 +01:00
parent 514acf1bac
commit 2fe1fb974a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 );