CPU reductions (same charts/features)
CI / test (push) Successful in 1m11s
Release rolling / release (push) Successful in 7m35s

Cache cpuidle names (was re-reading name sysfs every tick × cores)
Cache CPU sysfs dir list + register cpufreq/throttle once
Map for per-core prev lookups (was O(n²) .find)
Dedupe meminfo/vmstat once per tick
Cache iface speed/duplex/mtu/qlen (30s)
Cache inotify limits (30s)
Gate registerChart for IRQs, cpuidle, peardock mapped charts
Remove leftover profile() stderr timers
Cache os.cpus().length in docker collector
Grow fd-cache buffer past 64KB for /proc/interrupts etc.
This commit is contained in:
Raven Scott
2026-07-22 13:40:39 -04:00
parent 9dd7e44380
commit af6609c2d3
9 changed files with 243 additions and 148 deletions
+4
View File
@@ -28,6 +28,10 @@ test('host-more parsers', (t) => {
})
test('collector second tick includes deep/more charts on Linux', async (t) => {
if (process.platform !== 'linux') {
t.pass('linux-only')
return
}
const c = new MetricsCollector({ intervalMs: 40 })
/** @type {Set<string>} */
const charts = new Set()