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

Method ToString

IntelPresentMon/Interprocess/source/MetricCapabilities.cpp:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 std::string MetricCapabilities::ToString(size_t indentSpaces) const
44 {
45 std::ostringstream oss;
46 const std::string indent(indentSpaces, ' ');
47 bool first = true;
48 for (const auto& kv : caps_) {
49 if (!first) {
50 oss << "\r\n";
51 oss << indent;
52 }
53 first = false;
54 oss << "metricId=" << static_cast<std::underlying_type_t<PM_METRIC>>(kv.first)
55 << " arraySize=" << kv.second;
56 }
57 return oss.str();
58 }
59}

Callers 2

RegisterGpuDeviceMethod · 0.45
RegisterCpuDeviceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected