
Macos Perf
- 54 installs
- 6 repo stars
- Updated March 13, 2026
- alphaonedev/openclaw-graph
macos-perf is a Claude Code skill that monitors and profiles macOS system performance (CPU, memory, thermal, power) using native tools like top, vm_stat, powermetrics, and Instruments.
About
This skill monitors and profiles macOS system performance using native tools, focusing on CPU, memory, thermal, and power metrics. A developer uses it to diagnose high CPU usage, investigate memory leaks, profile resource-intensive processes, or analyze power consumption. It wraps tools like top, vm_stat, powermetrics, and Instruments.
- Monitors CPU, memory, thermal, and power metrics with native macOS tools
- Profiles apps with Instruments and top/htop to find bottlenecks
- Checks memory pressure via vm_stat and thermal state via powermetrics
Macos Perf by the numbers
- 54 all-time installs (skills.sh)
- Ranked #700 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
macos-perf capabilities & compatibility
- Capabilities
- macos networking · macos launchd · macos security
- Use cases
- debugging · devops
- Platforms
- macOS
What macos-perf says it does
This skill enables monitoring and profiling macOS system performance using native tools, focusing on CPU, memory, thermal, and power metrics to identify bottlenecks and optimize applications.
Check memory pressure using `vm_stat` to detect low-memory conditions.
npx skills add https://github.com/alphaonedev/openclaw-graph --skill macos-perfAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 54 |
|---|---|
| repo stars | ★ 6 |
| Last updated | March 13, 2026 |
| Repository | alphaonedev/openclaw-graph ↗ |
What it does
Monitor and profile macOS CPU, memory, thermal, and power usage to find performance bottlenecks.
Who is it for?
Diagnosing macOS performance bottlenecks and profiling apps with native tooling.
When should I use this skill?
You need to diagnose high CPU usage, a memory leak, thermal throttling, or power drain on macOS.
What you get
- performance traces and metrics for macOS processes
Files
macos-perf
Purpose
This skill enables monitoring and profiling macOS system performance using native tools, focusing on CPU, memory, thermal, and power metrics to identify bottlenecks and optimize applications.
When to Use
Use this skill for diagnosing high CPU usage in apps, investigating memory leaks, profiling resource-intensive processes, checking thermal states during heavy workloads, or analyzing power consumption on macOS devices.
Key Capabilities
- Monitor real-time system metrics via Activity Monitor or
top/htopfor CPU, memory, and network usage. - Profile applications with Instruments, capturing detailed traces for CPU, memory, and energy.
- Check memory pressure using
vm_statto detect low-memory conditions. - Query thermal state via
powermetricsfor CPU/GPU temperatures and fan speeds. - Analyze power metrics with
powermetricsto measure battery drain and efficiency. - Use command-line tools like
top -o cpufor sorted process lists orinstruments -s devicesfor available templates.
Usage Patterns
Invoke this skill in scripts for automated monitoring or integrate into AI workflows for real-time analysis. For example, run periodic checks in a loop for server-like macOS setups, or trigger profiling when an app exceeds resource thresholds. Always specify exact tools and flags based on the task; e.g., use top for quick views and Instruments for deep dives. If integrating with automation, export data to JSON for parsing.
Common Commands/API
- Use
top -o cpu -s 1to display processes sorted by CPU usage, updating every second; pipe output togrepfor filtering, e.g.,top -o cpu | grep "MyApp". - Check memory pressure with
vm_stat | grep "Pages"to get free pages; sample code:
output = subprocess.run(['vm_stat'], capture_output=True).stdout
free_pages = int(re.search(r'free:\s+(\d+)', output.decode()).group(1))- Run
powermetrics --samplers cpu,thermal -i 1000for CPU and thermal data every 1 second. - Launch Instruments via CLI:
instruments -w <device> -t Time Profiler -D output.trace /path/to/app; use exported .trace files for analysis. - For thermal state, use
ioreg -l | grep "Ambient"to parse ambient temperature from system registry. - No API keys required for these tools; they run natively on macOS.
Integration Notes
Integrate by wrapping commands in Python or shell scripts; set environment variables for custom paths, e.g., export INSTRUMENTS_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/instruments. For data export, use plutil to convert .plist outputs to JSON. If combining with other skills, ensure macOS version compatibility (e.g., Instruments requires Xcode); check via sw_vers -productVersion. Avoid running multiple intensive tools simultaneously to prevent resource contention.
Error Handling
Check command exit codes; for example, if top fails, verify with echo $? and handle by logging errors or retrying. For Instruments, parse stderr for messages like "Template not found" and fallback to alternatives. Use try-except in scripts, e.g.:
try:
result = subprocess.run(['instruments', '-t', 'Time Profiler'], check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e.returncode} - {e.output}")Common issues include permission errors (run with sudo) or missing dependencies (install Xcode command line tools via xcode-select --install).
Concrete Usage Examples
1. To monitor CPU usage of a specific process: Run top -pid <processID> -o cpu in a loop script, then analyze output to alert if usage > 80%; example script line: while true; do top -pid 1234 -l 1 | grep CPU; sleep 5; done. 2. For profiling an app's memory: Use instruments -t Allocations -D profile.trace /Applications/MyApp.app, then open the trace in Instruments GUI to identify leaks; integrate by scripting: instruments ... && open profile.trace.
Graph Relationships
- Related to: macos cluster (e.g., macos-core for basic system ops), performance tag (links to general profiling skills), profiling tag (connects to app optimization tools).
- Dependencies: Requires macos cluster skills for foundational access; no direct API links.
Related skills
FAQ
What does macos-perf measure?
CPU, memory, thermal, and power metrics on macOS using top, vm_stat, powermetrics, and Instruments.
How do I check memory pressure?
Run vm_stat and parse free pages to detect low-memory conditions.