From 23c59a6fc97ef597d7d6cf34e8ff21ee63b7f53d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 8 Nov 2019 23:59:20 +0100 Subject: [PATCH] Use query cache. --- server/TracyWorker.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 27cde443..1c15e04e 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -2863,8 +2863,7 @@ void Worker::NewZone( ZoneEvent* zone, uint64_t thread ) ztd.SetZone( zone ); ztd.SetThread( CompressThread( thread ) ); #else - auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() ); - (*cnt)++; + CountZoneStatistics( zone ); #endif auto td = NoticeThread( thread ); @@ -5153,9 +5152,8 @@ void Worker::ReconstructZoneStatistics( ZoneEvent* zone, uint16_t thread ) #else void Worker::CountZoneStatistics( ZoneEvent* zone ) { - auto it = m_data.sourceLocationZonesCnt.find( zone->SrcLoc() ); - assert( it != m_data.sourceLocationZonesCnt.end() ); - it->second++; + auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() ); + (*cnt)++; } #endif