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;