fix(pidusage): prune history entries for PIDs not present in the requested set to avoid stale data and memory growth

This commit is contained in:
2026-03-02 14:38:14 +00:00
parent 56757e1c71
commit 8fd8b9a915
3 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2026-03-02 - 3.0.2 - fix(pidusage)
prune history entries for PIDs not present in the requested set to avoid stale data and memory growth
- Deletes entries from the history map when a PID is not included in the current pids array
- Prevents accumulation of stale PID histories and potential memory growth
- Change implemented in ts/smartmetrics.pidusage.ts alongside the metrics result construction
## 2026-02-19 - 3.0.1 - fix(smartmetrics)
no code changes detected; no version bump or release required