Skip to content

Commit 9f3308e

Browse files
committed
Add telemetry about the number of processes started in a session
1 parent 9b07e72 commit 9f3308e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.html

+12
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,18 @@
294294

295295
async function runTest(cx)
296296
{
297+
var processCount = 0;
298+
function handleProcessCreated()
299+
{
300+
processCount++;
301+
plausible(`Process started: ${processCount}`);
302+
if(processCount == 5)
303+
{
304+
// Make sure no further event is reported
305+
cx.unregisterCallback("processCreated", handleProcessCreated);
306+
}
307+
}
308+
cx.registerCallback("processCreated", handleProcessCreated);
297309
cx.registerCallback("cpuActivity", cpuCallback);
298310
cx.registerCallback("diskActivity", hddCallback);
299311
registerNetworkLogin(cx, networkInterface);

0 commit comments

Comments
 (0)