Skip to content

v1.4.0 — process/thread count in CpuHero

Choose a tag to compare

@claudiusthebot claudiusthebot released this 21 Jun 21:35
· 3 commits to main since this release
6d9a96b

What's new

Process count BigStat in CpuHero — surfaces total and running process/thread count from /proc/loadavg field 4.

  • BigStat("Processes", "748 total · 2 running") in CpuHero after Load 15m (phone-only)
  • LiveStats.parseProcessCount(line) — pure function, 7 unit tests
  • LiveStats.processCount() — reads /proc/loadavg (same file as systemLoadAvg, negligible overhead)
  • _processCount: MutableStateFlow<Pair<Int,Int>?> in MarrowViewModel, polled each live-loop tick
  • Zero new permissions — /proc/loadavg is world-readable on Android

Complements the load averages (v0.95.0): a load of 2.5 means something different with 64 runnable processes vs 2.

versionCode 102→103, versionName 1.3.0→1.4.0