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

Method StartTracking

IntelPresentMon/PresentMonMiddleware/Middleware.cpp:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 void Middleware::StartTracking(uint32_t targetPid)
150 {
151 if (frameMetricsSources_.contains(targetPid)) {
152 throw util::Except<ipc::PmStatusError>(PM_STATUS_ALREADY_TRACKING_PROCESS,
153 std::format("Process [{}] is already being tracked", targetPid));
154 }
155 pActionClient_->DispatchSync(StartTracking::Params{ targetPid });
156 frameMetricsSources_.emplace(targetPid,
157 std::make_unique<FrameMetricsSource>(*pComms_, targetPid, kFrameMetricsPerSwapChainCapacity));
158
159 pmlog_info(std::format("Started tracking pid [{}]", targetPid)).diag();
160 }
161
162 void Middleware::StartPlaybackTracking(uint32_t targetPid, bool isBackpressured)
163 {

Callers 1

pmStartTrackingProcessFunction · 0.45

Calls 1

DispatchSyncMethod · 0.45

Tested by

no test coverage detected