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

Method EnumerateAdapters

IntelPresentMon/Core/source/pmon/PresentMon.cpp:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 return telemetrySamplePeriod;
73 }
74 std::vector<AdapterInfo> PresentMon::EnumerateAdapters() const
75 {
76 std::vector<AdapterInfo> infos;
77 for (const auto& info : pIntrospectionRoot->GetDevices()) {
78 if (info.GetType() != PM_DEVICE_TYPE_GRAPHICS_ADAPTER) {
79 continue;
80 }
81 infos.push_back(AdapterInfo{
82 .id = info.GetId(),
83 .vendor = info.IntrospectVendor().GetName(),
84 .name = info.GetName(),
85 });
86 }
87 return infos;
88 }
89 void PresentMon::SetEtlLogging(bool active)
90 {
91 pmlog_warn("Ignoring ETL logging request because ETL logging is disabled").pmwatch(active);

Callers

nothing calls this directly

Calls 6

push_backMethod · 0.80
IntrospectVendorMethod · 0.80
GetDevicesMethod · 0.45
GetTypeMethod · 0.45
GetIdMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected