From e1682c767512bc4bed5fbf446a5d2166ab88d98e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 2 Apr 2018 02:37:40 +0200 Subject: [PATCH] Draw active allocations list. --- server/TracyView.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 532384c7..abb427e3 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3808,6 +3808,16 @@ void View::DrawMemory() } } + ImGui::Separator(); + if( ImGui::TreeNode( "Active allocations" ) ) + { + ListMemData( mem.active.begin(), mem.active.end(), []( auto& v ) { + ImGui::Text( "0x%" PRIx64, v->second->ptr ); + return v->second; + } ); + ImGui::TreePop(); + } + ImGui::End(); }