From 68dd90cb94329c37b533cc5095177a21c8f4ee13 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 9 Aug 2018 02:27:55 +0200 Subject: [PATCH] Also display exact memory allocation size. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 31e35de7..eb4f5916 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5654,6 +5654,11 @@ void View::DrawMemoryAllocWindow() sprintf( buf, "0x%" PRIx64, ev.ptr ); TextFocused( "Address:", buf ); TextFocused( "Size:", MemSizeToString( ev.size ) ); + if( ev.size >= 10000ll ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(%s bytes)", RealToString( ev.size, true ) ); + } ImGui::Separator(); TextFocused( "Appeared at", TimeToString( ev.timeAlloc - m_worker.GetTimeBegin() ) ); if( ImGui::IsItemClicked() ) CenterAtTime( ev.timeAlloc );