MCPcopy Create free account
hub / github.com/comaps/comaps / TrackAverageAllocation

Method TrackAverageAllocation

libs/drape/utils/gpu_mem_tracker.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void GPUMemTracker::TrackAverageAllocation(uint64_t hash, uint64_t size)
93{
94 uint32_t constexpr kBucketMask = 0x7;
95
96 std::lock_guard<std::mutex> g(m_mutex);
97 auto & allocation = m_averageAllocations[hash & kBucketMask];
98 allocation.m_totalSizeInBytes += size;
99 allocation.m_count++;
100}
101} // namespace dp

Callers 1

ResizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected