MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / StopTracking

Method StopTracking

IntelPresentMon/PresentMonMiddleware/Middleware.cpp:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

pmStopTrackingProcessFunction · 0.45

Calls 2

endMethod · 0.45
DispatchSyncMethod · 0.45

Tested by

no test coverage detected