Add process view
CI / test (push) Successful in 1m1s
Release rolling / release (push) Successful in 7m12s

This commit is contained in:
Raven Scott
2026-07-19 15:41:35 -04:00
parent 2923678354
commit f604d210c3
20 changed files with 2215 additions and 6 deletions
+4
View File
@@ -4,6 +4,10 @@ import { isProcessCollectorEnabled, listProcStats } from '../server/services/col
test('isProcessCollectorEnabled', (t) => {
const prev = process.env.PEARDATA_PROCESSES
delete process.env.PEARDATA_PROCESSES
// Default on for Linux hosts
if (process.platform === 'linux') t.ok(isProcessCollectorEnabled())
else t.absent(isProcessCollectorEnabled())
process.env.PEARDATA_PROCESSES = '0'
t.absent(isProcessCollectorEnabled())
process.env.PEARDATA_PROCESSES = '1'
t.ok(isProcessCollectorEnabled())