diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 31cc7866..2d28eec7 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -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(); diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 0865ff2e..4b8055a6 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -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;