From 9f3308e422441dc423cb1fcda44d7da0bb1a61ba Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Thu, 4 Jul 2024 16:53:50 +0200 Subject: [PATCH] Add telemetry about the number of processes started in a session --- index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.html b/index.html index cd60305..026d9f1 100644 --- a/index.html +++ b/index.html @@ -294,6 +294,18 @@ __ __ _ __ ____ __ async function runTest(cx) { + var processCount = 0; + function handleProcessCreated() + { + processCount++; + plausible(`Process started: ${processCount}`); + if(processCount == 5) + { + // Make sure no further event is reported + cx.unregisterCallback("processCreated", handleProcessCreated); + } + } + cx.registerCallback("processCreated", handleProcessCreated); cx.registerCallback("cpuActivity", cpuCallback); cx.registerCallback("diskActivity", hddCallback); registerNetworkLogin(cx, networkInterface);