mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Display number of entry call stacks in a tooltip.
This commit is contained in:
parent
514acf1bac
commit
2fe1fb974a
@ -2483,11 +2483,17 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal,
|
|||||||
inlineList++;
|
inlineList++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const auto& stats = *worker.GetSymbolStats( symAddrParents );
|
||||||
|
assert( !stats.parents.empty() );
|
||||||
|
|
||||||
if( m_font ) ImGui::PopFont();
|
if( m_font ) ImGui::PopFont();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
TextFocused( "Time:", TimeToString( ipcnt * worker.GetSamplingPeriod() ) );
|
TextFocused( "Time:", TimeToString( ipcnt * worker.GetSamplingPeriod() ) );
|
||||||
TextFocused( "Sample count:", RealToString( ipcnt ) );
|
TextFocused( "Sample count:", RealToString( ipcnt ) );
|
||||||
|
ImGui::Separator();
|
||||||
|
TextFocused( "Entry call stacks:", RealToString( stats.parents.size() ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
TextDisabledUnformatted( "(middle click to view)" );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
if( m_font ) ImGui::PushFont( m_font );
|
if( m_font ) ImGui::PushFont( m_font );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user