Loading...
Loading...
Native macOS/iOS app performance profiling via xctrace/Time Profiler and CLI-only analysis of Instruments traces. Use when asked to profile, attach, record, or analyze Instruments .trace files, find hotspots, or optimize native app performance without opening Instruments UI.
npx skill4agent add steipete/agent-scripts native-app-performancexctrace# Start app yourself, then attach
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --attach <pid>xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/Appscripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xml# While app is running
vmmap <pid> | rg -m1 "__TEXT" -nscripts/top_hotspots.py --samples /tmp/time-sample.xml \
--binary /path/App.app/Contents/MacOS/App \
--load-address 0x100000000 --top 30--launchxcrun xctrace help recordxcrun xctrace help exportscripts/record_time_profiler.shscripts/extract_time_samples.pyscripts/top_hotspots.py__TEXTvmmap--binaryatos