From 740486a0ce9b8dd214d511112b797fcd66358d36 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Feb 2019 16:14:13 +0100 Subject: [PATCH] Add children locations grouping button. --- server/TracyView.cpp | 3 +++ server/TracyView.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 884b8a16..2f887544 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4146,6 +4146,9 @@ void View::DrawZoneInfoWindow() ImGui::TextDisabled( "(%s)", RealToString( children.size(), true ) ); if( expand ) { + ImGui::SameLine(); + if( ImGui::SmallButton( m_groupChildrenLocations ? "Display all children separate" : "Group children locations" ) ) m_groupChildrenLocations = !m_groupChildrenLocations; + auto ctt = std::make_unique( children.size() ); auto cti = std::make_unique( children.size() ); uint64_t ctime = 0; diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 8cff0eb0..3ba13051 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -270,6 +270,7 @@ private: bool m_statSelf = false; bool m_showCallstackFrameAddress = false; bool m_showUnknownFrames = true; + bool m_groupChildrenLocations = false; ShortcutAction m_shortcut = ShortcutAction::None; Namespace m_namespace = Namespace::Full;