mac-performance-monitor README

项目的 README,来自 github.com/Zesty0wl/mac-performance-monitor。合并为一个 markdown 文件:README.md。

Mac Performance Monitor

CI Latest release Downloads Homebrew cask Homebrew installs Stars

macOS 15+ Apple silicon Swift 6 Notarized No telemetry Crowdin License Listed on OpenMacApps

A native macOS performance monitor and recorder. See what your Mac is doing now, then go back to the moment a slowdown or spike began. Compare CPU, memory, GPU, network, disk, battery, and sensor readings with the processes behind them.

Use it as a live menu bar readout, a quiet background recorder, or a window you open when needed. The menu bar and history recorder have separate switches.

Free and open source. No usage telemetry. Recorded samples stay on your Mac.

2.8 release notes · Changelog · Documentation

Explorer lining up memory pressure with the CPU and memory of the processes behind it

New In 2.8

The Processes tab can now control and look inside a process, interpreters say what they are running, and the app warns you before the startup disk fills up.

See the release notes for requirements and the changelog for every change.

Recent Releases

Explorer: Investigate A Moment

Explorer is a workspace for live and recorded data. Pick a time, add the signals you need, and compare up to eight processes, including ones that have exited.

Hover to move a shared cursor across the charts. Click to pin a time. Hold Command and scroll to zoom around the pointer; ordinary scrolling still moves the page. Charts fill the window, or choose how many fit on screen.

The inspector shows source values, timestamps, known bounds, and stored machine rows. Export the visible data as CSV, or share process history in a trace file. Older data keeps its retained resolution; zooming does not invent detail. Hardware inventory is a current snapshot, separate from history.

Explorer guide

Alerts Based On Change

High swap usage alone is not a reason to warn you. The rules look for continued growth or paging strain. They can report further worsening without first waiting for usage to fall below an old fixed limit.

Process-growth checks reject stale readings and growth that has settled. Modest findings stay as quiet observations, not a diagnosis of a memory leak. A separate fast-growth check can catch runaway use without waiting 20 minutes, and a program that keeps about a core busy for an hour is flagged too. A low disk space alert warns when the startup disk drops below 10% free (you choose the level), and the menu bar can show the space left.

Click the menu bar alert badge for active issues and their evidence. Snooze an ordinary alert for an hour, or open it in Explorer at the relevant time. Related memory alerts share a notice, and only critical notices request sound.

Adaptive alert rules and limits

Ask And AI Agents

On macOS 27, Ask About This Mac opens with a one-line verdict and a status for each part of the Mac. Tap one, or ask a plain question such as "Why is my Mac slow?". The app checks its own readings and history, then Apple's on-device model explains them in everyday language, with links to the matching charts. Nothing leaves your Mac, and the area summaries work even when Apple Intelligence is off. Answers can still be wrong, so the facts behind each one are a click away.

Hand a harder question to Claude Code, Codex or another agent. Ask copies a prompt that explains the recorded history, or the one-line setup for the bundled read-only MCP server:

claude mcp add --scope user mac-performance-monitor -- "/Applications/Mac Performance Monitor.app/Contents/MacOS/mpm" mcp

Run mpm help for the command-line tool. The AI agents guide covers Claude Code, Codex, Claude Desktop, Cursor and VS Code, what agents can ask, and what leaves your Mac.

Battery History

All six Energy cards open larger charts and explanations. Health and Cycles show daily history over months and years, kept separate for each battery pack. Long-term history grows from new readings with recording on.

Runtime uses macOS estimates or recent steady use. A dashed forecast stays separate from real charge data. It assumes the same workload, not a fixed promise of how long the battery will last.

The Accessories panel shows the battery levels macOS reports for mice, keyboards, AirPods, and other devices. Optional low-battery alerts live in Settings > Alerts.

Energy guide

Upgrading From 1.x

Existing alert choices and history carry forward. The old swap threshold is no longer used, but explicit process-memory budgets remain available. New database fields preserve detail from new samples; they cannot restore missing older readings.

Back up the app's data before testing a downgrade. Review the upgrade notes and privacy policy before sharing trace files, reports, or screenshots.

Monitor Your Mac

Screenshots

Every screenshot shows real readings from one MacBook Pro (M3 Pro) running the app, with no sample data. Hostnames, network and hardware addresses, serial numbers, and personal device and volume names are covered with grey boxes. Capture details are in the release checklist.

Dashboard

The current overview: pressure, memory, CPU, network, disk, and thermal trends.

Dashboard with memory cards, a memory pressure chart, CPU cores and memory composition

Processes

The Apps layout adds up each app's memory and CPU across all of its processes. Selecting an app lists the processes working for it.

Processes in the Apps layout with Safari's 15 processes in the inspector

Process Usage Timeline

Sampled running history for one process over 24 hours. Apple app and media activity are optional lanes, left off here.

Usage Timeline showing a process's sampled running history over 24 hours

Ask About This Mac

On macOS 27, Ask opens with a plain status for each part of the Mac, based on the last hour.

Ask About This Mac with a status tile for each part of the Mac

Energy

Charge, power draw, battery health and cycles, accessory batteries, and the processes drawing the most power.

Energy with battery cards, accessory batteries, battery health and energy flow

GPU

Live GPU, power, memory, awake time and Neural Engine readings, with the processes using the GPU and what kind of work they do.

GPU tab with headline cards, the processes using the GPU, and work by category

The Device panel shows the GPU's clock against its top clock and time at each clock state, with the clock recorded in Over time.

GPU clock history beside the Device panel's clock states

Network

Throughput history and each network adapter.

Network throughput chart and adapters

Disk

A card for each drive with free space, connection, and live reads and writes, beside the internal drive's health.

Disk page with drive cards, read and write charts, and drive health

Hardware Ports

Each port shows what is plugged in, the negotiated data links, and plain diagnostics.

Hardware Ports detail for a USB-C port with a hub connected

Install

For the latest published build, download MacPerformanceMonitor.pkg from Releases and double-click it. Published packages are Developer ID signed and notarized by Apple. Sparkle handles app updates.

Homebrew

brew install --cask mac-performance-monitor

This installs the same signed, notarized pkg from the main homebrew-cask repository. Homebrew's version can lag a new release until its cask update lands. The app also keeps itself current through Sparkle. To include it in brew upgrade, pass --greedy.

Build From Source

git clone --branch main https://github.com/Zesty0wl/mac-performance-monitor.git
cd mac-performance-monitor
swift build
swift test
Scripts/run.sh

You need Apple silicon and macOS 15 (Sequoia) or later. Building the app bundle needs Xcode 27 for its App Intents metadata and the macOS 27 SDK. Core builds and tests use Swift 6. Bundling needs Xcode's xcstringstool too. The run script uses a signing identity when available, or falls back to ad-hoc signing. Ad-hoc builds cannot use the privileged helper. See CONTRIBUTING.md for signing options and test coverage.

Privacy

No usage telemetry or analytics. Recorded performance data and alert evidence stay on your Mac. Exports leave it only when you choose to share them.

Update checks, signed check and glossary downloads, and network tools make network requests. They do not upload your recorded performance history. Ask uses Apple's on-device model and clears its conversation when closed. If you hand an investigation to an AI agent such as Claude Code, the agent sends what it reads to its provider. Optional Siri and Shortcuts sharing follows Apple's processing rules and can pass results to other actions. See Security and privacy for these separate choices.

Contributing

Contributions are welcome. See CONTRIBUTING.md and the Code of Conduct. Security reports go through SECURITY.md.

The app ships in English, Simplified Chinese, German, French, and Russian. German, French, and Russian began as AI translations and await review by native speakers. New 2.0 strings in Simplified Chinese also include generated copy awaiting review. Translate or review in your browser on Crowdin, or edit one file and open a pull request. See TRANSLATING.md for the translation history and review process.

License

Released under the MIT License. Bundles GRDB.swift (MIT) and Sparkle (MIT).

mac-performance-monitor (Zesty0wl/mac-performance-monitor)

正在搜索数据库…

这是什么?一款原生 macOS 性能监控与记录工具,追踪 CPU、内存、GPU、网络、磁盘、电池和传感器读数,并让你将它们与其背后的进程对照查看。它可以作为菜单栏读数、安静的后台记录器,或按需打开的窗口来使用。
它只是菜单栏上的实时读数,还是会保留历史记录?两者都有:菜单栏显示和历史记录器有各自独立的开关,你可以只开实时读数、在后台静默记录历史,或两者同时开,然后回跳到卡顿开始的时间点。
它能在 Intel Mac 上运行吗?不能。它需要 Apple Silicon 和 macOS 15(Sequoia)或更高版本;从源码构建应用包则需要 Xcode 27 和 Swift 6。
内置的 AI「Ask」功能可信吗?它是一个需要主动开启的预览功能,使用设备端模型(或可选下载的 Qwen3/DeepAnalyze)在本地回答问题,但 README 写明它「无法运行命令或更改设置,答案仍可能出错」,因此应把它当作基于证据的解释,而不是绝对事实。
我的性能数据会离开我的 Mac 吗?不会。记录的性能数据和警报证据都保留在你的 Mac 上,只有你主动选择分享时导出内容才会离开;网络请求仅用于更新检查和模型下载,绝不会上传你的历史记录。
Explorer 视图能做什么?Explorer 让你选择某个时间点、叠加所需的信号,并比较多达八个进程(包括已退出的进程),支持共享光标、固定、缩放以及 CSV/trace 导出。
它能告诉我什么在吃我的磁盘空间吗?可以。Disk Map 功能会扫描磁盘或文件夹,并以矩形树图的形式展示空间占用,还可以选择在 Finder 或快速查看中显示大文件或旧文件。
它能识别我 Mac 上运行的本地 AI 工具吗?可以。GPU 视图可以识别 Ollama、MLX 和 LM Studio 等 AI 运行时,并显示它们的 GPU 活动、内存和功耗。
这个应用支持哪些语言?英语、简体中文、德语和法语,不过德语、法语以及部分新增的简体中文文案最初来自 AI 翻译,尚待母语使用者审校。
作者
Zesty0wl
大小
46.1 MB
星标
1K
时长
4个月
提交 · 90 天