From f6d4728494c358552f60fa085437739ad1c6e7b6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Mar 2018 01:34:12 +0200 Subject: [PATCH] Move child zones into an expandable tree. --- server/TracyView.cpp | 134 +++++++++++++++++++++++-------------------- 1 file changed, 73 insertions(+), 61 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 94c4dd98..e296e3a0 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2466,43 +2466,49 @@ void View::DrawZoneInfoWindow() if( !ev.child.empty() ) { - const auto ty = ImGui::GetTextLineHeight(); - ImGui::Columns( 2 ); ImGui::Separator(); - ImGui::Text( "Child zones: %s", RealToString( ev.child.size(), true ) ); - ImGui::NextColumn(); - char buf[128]; - sprintf( buf, "Exclusive time: %s (%.2f%%)", TimeToString( ztime - ctime ), double( ztime - ctime ) / ztime * 100 ); - ImGui::ProgressBar( double( ztime - ctime ) / ztime, ImVec2( -1, ty ), buf ); - ImGui::NextColumn(); - ImGui::Separator(); - for( size_t i=0; i