Loading...
Loading...
Use when profiling native macOS or iOS apps with Instruments/xctrace. Covers correct binary selection, CLI arguments, exports, and common gotchas.
npx skill4agent add steipete/agent-scripts instruments-profilingxctracexcrun xctrace list templatesxcrun xctrace record --template 'Time Profiler' --time-limit 60s --output /tmp/App.trace --launch -- /path/To/App.appxcrun xctrace record --template 'Time Profiler' --time-limit 60s --output /tmp/App.trace --attach <pid>open -a Instruments /tmp/App.tracexcrun xctrace --helpxcrun xctrace help record/Applicationsxcrun xctrace record ... --launch -- /path/App.app/Contents/MacOS/App.appopen -n /path/App.appps -p <pid> -o comm= -o command=/Applications/App.app--template 'Time Profiler'xctrace list templates--launch -- <cmd>----attach <pid|name>--output <path>.trace--time-limit 60s|5m--device <name|UDID>--target-stdout -xcrun xctrace export --input /tmp/App.trace --tocxcrun xctrace export --input /tmp/App.trace --xpath '/trace-toc/run[@number="1"]/data/table[@schema="time-profile"]' --output /tmp/time-profile.xml--attachxctracetime-profilexcrun xctrace list devices--device <UDID>xctrace --attach