summaryrefslogtreecommitdiff
path: root/debug.js
diff options
context:
space:
mode:
Diffstat (limited to 'debug.js')
-rw-r--r--debug.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.js b/debug.js
new file mode 100644
index 0000000..3451c39
--- /dev/null
+++ b/debug.js
@@ -0,0 +1,4 @@
+setInterval(async () => {
+ mem = await process.getProcessMemoryInfo();
+ document.getElementById("debug-info").innerText = "Electron " + process.versions.electron + "\nChromium " + process.versions.chrome + "\nNodeJS " + process.versions.node + "\n\nCPU: " + process.getCPUUsage().percentCPUUsage.toFixed(2) + "%\nCore: " + mem.shared + "K\nGUI: " + mem.private + "K\n\n" + WindowManager.stack.map((w) => { return w.id.substring(7).split("-app-")[0] }).join("\n");
+}, 1000) \ No newline at end of file