| 189 | } |
| 190 | |
| 191 | void Middleware::StopTracking(uint32_t targetPid) |
| 192 | { |
| 193 | auto it = frameMetricsSources_.find(targetPid); |
| 194 | if (it == frameMetricsSources_.end()) { |
| 195 | throw util::Except<ipc::PmStatusError>(PM_STATUS_INVALID_PID, |
| 196 | std::format("Process [{}] is not currently being tracked", targetPid)); |
| 197 | } |
| 198 | pActionClient_->DispatchSync(StopTracking::Params{ targetPid }); |
| 199 | frameMetricsSources_.erase(it); |
| 200 | |
| 201 | pmlog_info(std::format("Stopped tracking pid [{}]", targetPid)).diag(); |
| 202 | } |
| 203 | |
| 204 | const pmapi::intro::Root& mid::Middleware::GetIntrospectionRoot_() |
| 205 | { |
no test coverage detected