From 2f6adf364181def5326c1129deff1273bc7d582b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 9 Apr 2021 21:22:25 +0200 Subject: [PATCH] Add child calls UI. --- server/TracySourceView.cpp | 5 +++++ server/TracySourceView.hpp | 1 + 2 files changed, 6 insertions(+) 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;