Skip to content

feat(dashboard): show top apps with icons instead of cut-off process names - #15

Merged
WolffTech merged 3 commits into
mainfrom
fix/top-processes-display
Oct 21, 2026
Merged

WolffTech merged 3 commits into
mainfrom
fix/top-processes-display

Conversation

@WolffTech

Copy link
Copy Markdown
Owner

The top-process lists in the dashboard details were hard to use. Names like com.apple.WebKit.WebContent and Microsoft Edge Helper (Renderer) were cut off to the point of being unreadable. One app could fill most of the list: three of four rows were Safari tabs. Memory values like "1,019.5 MB" also wrapped onto two lines.

The lists now rank apps, the way Activity Monitor's Energy tab does:

  • Grouped by app: each process's CPU, memory, and energy are added to the app macOS holds responsible for it. Safari's WebContent processes count as one Safari row, and Edge's helpers count as Microsoft Edge. Command-line tools count toward the app that launched them, such as a terminal.
  • Names and icons: each row shows the app's name and icon. Processes outside an app, such as system helpers, keep their executable name and get the generic executable icon.
  • Compact sizes: memory shows as whole MB or GB with one decimal ("1,020 MB", "1.2 GB"), and values can't wrap.
  • Titles: the lists are now "Top apps" and "Top apps by CPU". The README and privacy policy say "top apps" too.

The responsible app comes from responsibility_get_pid_responsible_for_pid, the same private macOS lookup Activity Monitor uses. Barometry loads it at runtime. If it's missing, each process counts as its own app, so the lists show one row per process again.

Testing

  • swift test in Packages/BarometryKit passes. New tests cover adding up an app's processes and naming the app from the outermost .app in its path.
  • A Debug build of the app succeeds.
  • Sampled the real processes on a Mac and checked that Safari's WebContent processes were grouped into a single Safari row.
  • Not yet checked by hand in the running app's dashboard.

- Show process memory as whole MB or GB with one decimal
- Limit process values to one line
- Sum each process's usage into the app macOS holds responsible
- Name each app from its outermost bundle, or the executable name
- Rename the top-process types and lists to apps
- Update README and privacy wording for top-app lists
- Show each app's icon, or the generic executable icon outside an app
- Cache icons since the lists redraw on every reading
- Truncate app names at the end instead of the middle
@WolffTech
WolffTech merged commit ef13967 into main Oct 21, 2026
2 checks passed
@WolffTech
WolffTech deleted the fix/top-processes-display branch November 10, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant