Cosmetics.

This commit is contained in:
Bartosz Taudul 2021-06-23 20:37:14 +02:00 committed by GitHub
parent 894c90f867
commit 913463635a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,7 +589,7 @@ enum { GhostZoneSize = sizeof( GhostZone ) };
using SrcLocCountMap = unordered_flat_map<int16_t, size_t>; using SrcLocCountMap = unordered_flat_map<int16_t, size_t>;
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 ); const auto it = countMap.find( srcloc );
if( it == countMap.end() ) if( it == countMap.end() )
@ -602,7 +602,7 @@ tracy_force_inline void IncSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc)
it->second++; 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 ); const auto it = countMap.find( srcloc );
assert( it != countMap.end() ); assert( it != countMap.end() );
@ -618,7 +618,7 @@ tracy_force_inline bool DecSrcLocCount(SrcLocCountMap& countMap, int16_t srcloc)
return true; 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 ); const auto it = countMap.find( srcloc );
@ -650,9 +650,8 @@ struct ThreadData
SampleData pendingSample; SampleData pendingSample;
uint64_t kernelSampleCnt; uint64_t kernelSampleCnt;
tracy_force_inline void IncStackCount(int16_t srcloc) { IncSrcLocCount( 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 ); }
tracy_force_inline bool DecStackCount(int16_t srcloc) { return DecSrcLocCount( stackCount, srcloc ); }
}; };
struct GpuCtxThreadData struct GpuCtxThreadData