From 1182a3fcb8b6f0dbbe2f73157c3da0d05efc2b33 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 3 Apr 2018 19:40:06 +0200 Subject: [PATCH] Stop processing allocations if already at time end. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 480b55c7..1ee8e9ae 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4047,7 +4047,7 @@ Vector View::GetMemoryPages() const const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2; for( auto& alloc : mem.data ) { - if( m_memInfo.restrictTime && alloc.timeAlloc > zvMid ) continue; + if( m_memInfo.restrictTime && alloc.timeAlloc > zvMid ) break; const auto a0 = alloc.ptr - memlow; const auto a1 = a0 + alloc.size;