| 322 | } |
| 323 | |
| 324 | void Kernel::ConfigurePresentMon_(const OverlaySpec& newSpec) |
| 325 | { |
| 326 | if (newSpec.telemetrySamplingPeriodMs != pm->GetGpuTelemetryPeriod()) { |
| 327 | pm->SetGpuTelemetryPeriod(newSpec.telemetrySamplingPeriodMs); |
| 328 | } |
| 329 | if (const auto currentEtwPeriod = pm->GetEtwFlushPeriod(); |
| 330 | newSpec.manualEtwFlush != bool(currentEtwPeriod) || |
| 331 | (currentEtwPeriod && *currentEtwPeriod != newSpec.etwFlushPeriod)) { |
| 332 | pm->SetEtwFlushPeriod(newSpec.manualEtwFlush ? |
| 333 | std::optional{ uint32_t(newSpec.etwFlushPeriod) } : std::nullopt); |
| 334 | } |
| 335 | } |
| 336 | } |
nothing calls this directly
no test coverage detected