From 38edf308fa1346b7b07dc45fcd68a18badd5292c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 2 Apr 2018 14:58:40 +0200 Subject: [PATCH] Display memory span. --- server/TracyView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ab76a1b1..1188d27b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3807,7 +3807,11 @@ void View::DrawMemory() ImGui::Begin( "Memory", &m_memInfo.show ); - ImGui::Text( "Total allocations: %-10s Active allocations: %-10s Memory usage: %s bytes", RealToString( mem.data.size(), true ), RealToString( mem.active.size(), true ), RealToString( mem.usage, true ) ); + ImGui::Text( "Total allocations: %-15s Active allocations: %-15s Memory usage: %-15s Memory span: %s", + RealToString( mem.data.size(), true ), + RealToString( mem.active.size(), true ), + RealToString( mem.usage, true ), + RealToString( mem.high - mem.low, true ) ); ImGui::InputText( "", m_memInfo.pattern, 1024 ); ImGui::SameLine();