| 41 | } |
| 42 | PresentMon::~PresentMon() = default; |
| 43 | void PresentMon::StartTracking(uint32_t pid_) |
| 44 | { |
| 45 | if (processTracker) { |
| 46 | if (processTracker.GetPid() == pid_) { |
| 47 | return; |
| 48 | } |
| 49 | pmlog_warn(std::format("Starting stream [{}] while previous stream [{}] still active", |
| 50 | pid_, processTracker.GetPid())); |
| 51 | } |
| 52 | processTracker = pSession->TrackProcess(pid_); |
| 53 | } |
| 54 | void PresentMon::StopTracking() |
| 55 | { |
| 56 | if (!processTracker) { |
no test coverage detected