Instruments profiling

From steipete/agent-scripts · View interactive version

Instruments profiling is an AI agent skill from the GitHub repository steipete/agent-scripts. Instruments/xctrace profiling: macOS/iOS traces, binaries, args, exports.

How to use this skill

Skill file

Instruments Profiling (macOS/iOS)

Use this skill when the user wants performance profiling or stack analysis for native apps.

Focus: Time Profiler, xctrace CLI, and picking the correct binary/app instance.

Quick Start (CLI)

Note: xcrun xctrace --help is not a valid subcommand. Use xcrun xctrace help record.

Picking the Correct Binary (Critical)

Gotcha: Instruments may profile the wrong app (e.g., one in /Applications) if LaunchServices resolves a different bundle.

Use these rules:

Command Arguments (xctrace)

Exporting Stacks (CLI)

Instruments UI Workflow

Gotchas & Fixes

iOS Specific Notes

Verification Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.