Recipes and examples
A developer day with Docker, Xcode, simulators and Electron editors
Tell a busy dev machine from a broken one, relaunch a grown editor, pause Docker with care, clean developer caches with review, and set a few rules.
- Free and Pro
A developer’s Mac runs a lot that looks wrong and is fine: a virtual machine that holds gigabytes, a build that pins every core, an indexer that runs for an hour. This recipe is a routine for a working day. It diagnoses first, fixes the one thing that is the reason, handles Docker with care, cleans developer leftovers with review, and sets the few rules worth keeping.
Hedroom sees Docker Desktop as one app. It does not manage containers, set Docker’s memory limit or read per-container usage, and it does not show per-process disk or network activity. Activity Monitor and Instruments do that better.
What you need
- Free: diagnosis (steps 1 to 3), the scan in step 7 and reading receipts.
- Pro: relaunch, efficiency cores, pause, cleaning to the Trash and rules. From 1.1, your first fix is free, receipt included.
- 1.1 or later: the developer cleanup pack (Cargo, Gradle, simulator caches).
- No admin helper. Nothing here needs it.
Steps
Diagnose first
- Read pressure. Open Today and the Memory tab. A big virtual machine will fill the bar, but the gauge (Healthy, Strained, Critical) is what counts. Hedroom’s library marks Docker Desktop as normally large and busy, so a big VM is not reported as a leak.
- Find the app that grew. In Top memory users, look for a chip such as “3.7×”. Slack, Discord and VS Code are Electron apps: one main process plus a crowd of helpers. Hedroom counts them as one app and compares the total with that app’s usual size over the last 7 days. It flags a leak at 3 times usual, at least 1 GB, for about 20 minutes.
- Check for runaway CPU. Open CPU & Energy. A build, a compiler or Xcode indexing is marked as normally busy, so it is not flagged as a runaway. A background app that averages 80% of one core for 3 minutes is.
Fix the one that is the reason
- Relaunch a grown editor or chat app. Press Relaunch on its row. Save your work first: Hedroom cannot see unsaved work inside an app, so it asks the app to quit like ⌘Q and waits up to 20 seconds. If the app shows a save dialog, Switch to
and answer it. Read the receipt afterwards. - Xcode. Xcode is an Apple app you use yourself. You can relaunch or quit it with a click. A rule can never do it.
- Docker Desktop, with care. If it is the busy one and you are not using it, open CPU & Energy and in Background apps press Efficiency cores on its row first. It keeps running, only more slowly, and Normal puts it back. Press Pause only if the containers can wait. A pause freezes the whole app, so nothing it does continues, and Hedroom cannot see whether a container is in the middle of a build or a write. A paused app resumes when you click it, and after 60 minutes at most. The receipt compares the app’s CPU before and after, and says “No measurable effect.” if nothing moved.
Clean developer leftovers
- Scan. Open Storage and press Scan storage. In Safe to remove you will see Xcode build data, Developer caches and Old simulators. In Review first you will see Xcode archives, Old device support files and, from 1.1, Build tool downloads (Cargo registry, Gradle caches and wrapper downloads, simulator caches).
- Review item by item. Press See files → on a card, tick only what you want, and press Done. Nothing in Review first is ticked for you. Xcode archives carries a warning: they are needed to symbolicate crash reports for apps you shipped.
- Clean up. Press Clean up, read the sheet, and confirm. Files go to the Trash. Old simulators are the exception: Apple’s own
simctlremoves them for good, and the sheet shows that in a separate block you must tick or leave out. If an app owns files in the selection, such as Xcode, the sheet offers a Quit button. A Put back button on the receipt returns what is still in the Trash. - Know what comes back. Caches rebuild, so your next build may take longer and need a connection. See Developer cleanup pack.
Rules worth setting once (Pro)
- Open Rules, press Open the full rule builder, and start from a template. Sensible ones for a developer: When Docker Desktop is idle on battery → pause it (it asks first with Do it and Skip, because Docker is not marked safe to pause), and a relaunch rule for the editor or chat app that grows (it always asks). Be careful with any rule that moves “any background app” on CPU: it has no list of your build tools, so add them to Never touch these. See Rule examples.
What you should see
Example, not real data: pressure is Strained at 3 pm. Top memory users shows an Electron editor at 3.4 GB with a “3.6×” chip. You save your work and press Relaunch. Ten minutes later the receipt says “2.2 GB returned” with before and after bars. Docker Desktop sits at 5 GB, but because the library treats that as normal, there is no finding for it.
Another: a scan shows Xcode build data 9.8 GB, Developer caches 3.1 GB and Build tool downloads 6.1 GB. You tick the build data and the caches and leave the Gradle version your project pins. The receipt reports what went to the Trash, and the Trash holds it until you empty it.
If it does not work
- Relaunch is missing on a row. The app is Apple’s, on your never-touch list, or on a call, or Hedroom could not check. The row says why. Apple processes show an explanation, not buttons.
- A cleanup skipped files. An app was using them. The card names it. Quit that app and press Try again.
- The Pause pill was refused. The row shows the reason, such as “You’re using it right now.” or “Hedroom couldn’t check whether this app is busy, so it left it alone.”
- Free space did not go up. The files are in the Trash. Empty it yourself, or use Empty these from the Trash on the receipt, which asks first.
- The receipt says “No measurable effect.” That is a result. A relaunch gives back memory only if the app had grown.