From faea036c1682819f4f77b0f1d00aaec545e58d3d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 1 Sep 2018 02:07:52 +0200 Subject: [PATCH] Ignore last, probably unfinished frame. --- server/TracyView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d024b99f..ab5e7a33 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6353,8 +6353,10 @@ void View::DrawInfo() TextFocused( "Source locations:", RealToString( m_worker.GetSrcLocCount(), true ) ); TextFocused( "Call stacks:", RealToString( m_worker.GetCallstackPayloadCount(), true ) ); TextFocused( "Call stack frames:", RealToString( m_worker.GetCallstackFrameCount(), true ) ); + + const auto fsz = m_worker.GetFrameCount( *m_frames ) - 1; + if( fsz != 0 ) { - const auto fsz = m_worker.GetFrameCount( *m_frames ); if( m_frameSortData.frameSet != m_frames || m_frameSortData.frameNum != fsz ) { m_frameSortData.frameSet = m_frames;