Skip to content

Commit 8129d3f

Browse files
committed
log telemetry introspection init time
1 parent cdf7f58 commit 8129d3f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

IntelPresentMon/AppCef/source/winmain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
246246
"--intro-nsm"s, *opt.shmName,
247247
"--etw-session-name"s, *opt.etwSessionName,
248248
"--log-level"s, std::to_string((int)log::GlobalPolicy::Get().GetLogLevel()),
249-
"--log-pipe-name"s, *logSvcPipe);
249+
"--log-pipe-name"s, *logSvcPipe,
250+
"--enable-stdio-log");
250251

251252
if (!pmon::util::win::WaitForNamedPipe(*opt.controlPipe, 1500)) {
252253
pmlog_error("timeout waiting for child service control pipe to go online");

IntelPresentMon/PresentMonService/PMMainThread.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,16 @@ void PowerTelemetryThreadEntry_(Service* const srv, PresentMon* const pm,
9494
if ((waitResult - WAIT_OBJECT_0) == 1) {
9595
return;
9696
}
97+
pmon::util::QpcTimer timer;
9798
ptc->Repopulate();
9899
for (auto& adapter : ptc->GetPowerTelemetryAdapters()) {
99-
// sample 2x here as workaround/kludge because Intel provider mispreports 1st sample
100+
// sample 2x here as workaround/kludge because Intel provider misreports 1st sample
100101
adapter->Sample();
101102
adapter->Sample();
102103
pComms->RegisterGpuDevice(adapter->GetVendor(), adapter->GetName(), adapter->GetPowerTelemetryCapBits());
103104
}
104105
pComms->FinalizeGpuDevices();
106+
pmlog_info(std::format("Finished populating GPU telemetry introspection, {} seconds elapsed", timer.Mark()));
105107
}
106108

107109
// only start periodic polling when streaming starts

0 commit comments

Comments
 (0)