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

Method StopTracking

IntelPresentMon/Core/source/pmon/PresentMon.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 2

~OverlayMethod · 0.45
RetargetPidCloneMethod · 0.45

Calls 2

GetPidMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected