perf: visibility-gate dashboard render loop

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-16 23:09:11 +00:00
1 parent e07b7f2c06
commit 19af4dcba5
13 files changed
+140 -70

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
[
{
"file": "dashboard/index.html",
"line": 816,
"pattern": "setInterval",
"snippet": " refreshIntervalId = setInterval(() => {",
"risk": "Unbounded background DOM updates",
"trigger": "Page load",
"impact": "CPU usage when tab is hidden",
"priority": "P1"
},
{
"file": "dashboard/index.html",
"line": 799,
"pattern": "setTimeout",
"snippet": " setTimeout(() => {",
"risk": "Delayed retry",
"trigger": "WebSocket close",
"impact": "Low",
"priority": "P3"
},
{
"file": "src/services/memory/scheduler.js",
"line": 33,
"pattern": "setInterval",
"snippet": " const handle = setInterval(() => {",
"risk": "Background job loop",
"trigger": "Server start",
"impact": "Necessary backend process",
"priority": "P3"
}
]