| 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); |
nothing calls this directly
no test coverage detected