From 913463635a2a275f7ec6bf27e5be8850dd916b88 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 23 Jun 2021 20:37:14 +0200 Subject: [PATCH] Cosmetics. --- server/TracyEvent.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index 1f349a06..cae2c83f 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -589,7 +589,7 @@ enum { GhostZoneSize = sizeof( GhostZone ) }; using SrcLocCountMap = unordered_flat_map; -tracy_force_inline void IncSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc) +static tracy_force_inline void IncSrcLocCount( SrcLocCountMap& countMap, int16_t srcloc ) { const auto it = countMap.find( srcloc ); if( it == countMap.end() ) @@ -602,7 +602,7 @@ tracy_force_inline void IncSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc) it->second++; } -tracy_force_inline bool DecSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc) +static tracy_force_inline bool DecSrcLocCount( SrcLocCountMap& countMap, int16_t srcloc ) { const auto it = countMap.find( srcloc ); assert( it != countMap.end() ); @@ -618,7 +618,7 @@ tracy_force_inline bool DecSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc) return true; } -tracy_force_inline bool HasSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc) +static tracy_force_inline bool HasSrcLocCount( const SrcLocCountMap& countMap, int16_t srcloc ) { const auto it = countMap.find( srcloc ); @@ -650,9 +650,8 @@ struct ThreadData SampleData pendingSample; uint64_t kernelSampleCnt; - tracy_force_inline void IncStackCount(int16_t srcloc) { IncSrcLocCount( stackCount, srcloc ); } - - tracy_force_inline bool DecStackCount(int16_t srcloc) { return DecSrcLocCount( stackCount, srcloc ); } + tracy_force_inline void IncStackCount( int16_t srcloc ) { IncSrcLocCount( stackCount, srcloc ); } + tracy_force_inline bool DecStackCount( int16_t srcloc ) { return DecSrcLocCount( stackCount, srcloc ); } }; struct GpuCtxThreadData