From 84cb8ab9cc0858b168a9fbc507180647d34157ed Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 Sep 2017 14:45:38 +0200 Subject: [PATCH] Properly track events if there are no frame marks. --- server/TracyView.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4c7aad3e..768ad5c6 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -623,7 +623,14 @@ void View::DrawFrames() { m_frameStart = ( total < onScreen * group ) ? 0 : total - onScreen * group; m_zvStart = m_frames[std::max( 0, (int)m_frames.size() - 4 )]; - m_zvEnd = m_frames.back(); + if( m_frames.size() == 1 ) + { + m_zvEnd = GetLastTime(); + } + else + { + m_zvEnd = m_frames.back(); + } } if( hover )