From e0872ce61b496f2c5ff98048fd2a70f665e9408c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 14 Nov 2021 14:26:34 +0100 Subject: [PATCH] Cosmetics. --- server/TracyView.cpp | 8 ++++---- server/TracyWorker.cpp | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 726bffc8..5c5a2625 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -12776,12 +12776,12 @@ void View::DrawStatistics() if( start >= min && end <= max ) { const auto zt = end - start; - if ( m_statAccumulationMode == AccumulationMode::SelfOnly) + if( m_statAccumulationMode == AccumulationMode::SelfOnly ) { total += zt - GetZoneChildTimeFast( z ); cnt++; } - else if ( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry(z) ) + else if( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry( z ) ) { total += zt; cnt++; @@ -12823,12 +12823,12 @@ void View::DrawStatistics() if( start >= min && end <= max ) { const auto zt = end - start; - if ( m_statAccumulationMode == AccumulationMode::SelfOnly) + if( m_statAccumulationMode == AccumulationMode::SelfOnly ) { total += zt - GetZoneChildTimeFast( z ); cnt++; } - else if ( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry(z) ) + else if( m_statAccumulationMode == AccumulationMode::AllChildren || !IsZoneReentry( z ) ) { total += zt; cnt++; diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index d13ae43a..cdf91697 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3934,7 +3934,6 @@ void Worker::AddSourceLocationPayload( uint64_t ptr, const char* data, size_t sz auto res = m_data.sourceLocationZones.emplace( key, SourceLocationZones() ); m_data.srclocZonesLast.first = key; m_data.srclocZonesLast.second = &res.first->second; - #else auto res = m_data.sourceLocationZonesCnt.emplace( key, 0 ); m_data.srclocCntLast.first = key;