feat: v3.26.170 诊断采样可关闭(15s 曲线 + 4s 进程轮询)+ 面板明细 60s 缓存
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 41s

This commit is contained in:
qiqi committed 2026-12-01 17:13:44 +08:00
1 parent b0fd0a725c
commit 624cc4a34f
4 files changed
+9 -2

No files matched your search

+2
View File
@@ -193,6 +193,8 @@
let memDegradeAt = 0
let memDegradeStage = 0 // S15:0=首触(只降级"非打开标签"画板);1=再触(压到活动标签 + 提示关标签)
const memTimer = setInterval(() => {
// v3.26.170:诊断关掉时整轮跳过(不采样、不算内存构成、不跑护栏)
try { if (lsGet('iwb_diag_off', false)) return } catch (e) { /* ignore */ }
try {
// v3.87.6:每次采样都落盘(环形 40 条 ≈ 10 分钟)——标签页被杀后重开即可看到"崩溃前的增长曲线"
// v3.87.37:启动后执行一次存量原图副本清理(只跑一次,localStorage 标记)