Add child calls UI.

This commit is contained in:
Bartosz Taudul 2021-04-09 21:22:25 +02:00
parent ffe8aebfbd
commit 2f6adf3641
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,7 @@ SourceView::SourceView( ImFont* font, GetWindowCallback gwcb )
, m_asmShowSourceLocation( true )
, m_calcInlineStats( true )
, m_atnt( false )
, m_childCalls( false )
, m_showJumps( true )
, m_cpuArch( CpuArchUnknown )
, m_showLatency( false )
@ -1116,6 +1117,10 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
}
if( iptotalAsm > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
{
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
SmallCheckbox( ICON_FA_SIGN_OUT_ALT " Child calls", &m_childCalls );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();

View File

@ -175,6 +175,7 @@ private:
uint8_t m_maxAsmBytes;
bool m_atnt;
uint64_t m_jumpPopupAddr;
bool m_childCalls;
SourceContents m_source;
SourceContents m_sourceTooltip;