MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Set

Method Set

IntelPresentMon/Interprocess/source/MetricCapabilities.cpp:7–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace pmon::ipc
6{
7 void MetricCapabilities::Set(PM_METRIC metricId, size_t arraySize)
8 {
9 if (arraySize == 0) {
10 // Zero-sized capabilities are effectively "not available";
11 // ignore rather than storing.
12 return;
13 }
14
15 auto it = caps_.find(metricId);
16 if (it == caps_.end()) {
17 caps_.emplace(metricId, arraySize);
18 }
19 else {
20 it->second = arraySize;
21 }
22 }
23
24 void MetricCapabilities::Merge(const MetricCapabilities& capsToMerge)
25 {

Callers 4

AccumulateGpuCapabilityFunction · 0.45
AccumulateCpuCapabilityFunction · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected