| 52 | processTracker = pSession->TrackProcess(pid_); |
| 53 | } |
| 54 | void PresentMon::StopTracking() |
| 55 | { |
| 56 | if (!processTracker) { |
| 57 | pmlog_warn("Cannot stop stream: no stream active"); |
| 58 | return; |
| 59 | } |
| 60 | const auto pid = processTracker.GetPid(); |
| 61 | processTracker.Reset(); |
| 62 | // TODO: caches cleared here maybe |
| 63 | pmlog_info(std::format("stopped pmon stream for pid {}", pid)); |
| 64 | } |
| 65 | void PresentMon::SetGpuTelemetryPeriod(uint32_t period) |
| 66 | { |
| 67 | pSession->SetTelemetryPollingPeriod(1, period); |
no test coverage detected