native-app-performanceNative 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.
Install via ClawdBot CLI:
clawdbot install steipete/native-app-performanceGoal: record Time Profiler via xctrace, extract samples, symbolicate, and propose hotspots without opening Instruments.
1) Record Time Profiler (attach):
# Start app yourself, then attach
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --attach <pid>
2) Record Time Profiler (launch):
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/App
3) Extract time samples:
scripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xml
4) Get load address for symbolication:
# While app is running
vmmap <pid> | rg -m1 "__TEXT" -n
5) Symbolicate + rank hotspots:
scripts/top_hotspots.py --samples /tmp/time-sample.xml \
--binary /path/App.app/Contents/MacOS/App \
--load-address 0x100000000 --top 30
--launch.xcrun xctrace help record and xcrun xctrace help export show correct flags.scripts/record_time_profiler.sh: record via attach or launch.scripts/extract_time_samples.py: export time-sample XML from a trace.scripts/top_hotspots.py: symbolicate and rank top app frames.__TEXT load address from vmmap.--binary path; symbols must match the trace.atos.Generated Mar 1, 2026
Developers use this skill to profile a native iOS app via CLI, identifying CPU hotspots during slow UI interactions like scrolling or data loading. It helps optimize code without needing the Instruments GUI, speeding up debugging cycles in agile development environments.
Software engineers analyze performance bottlenecks in macOS applications, such as sluggish menu responses or high CPU usage during background tasks. By recording traces and symbolicating stacks, they pinpoint inefficient functions for refactoring in productivity or creative tools.
Game developers profile native macOS/iOS games to find rendering or logic hotspots causing frame drops. The CLI workflow allows quick capture during gameplay sessions, enabling performance tuning for smoother experiences without interrupting the development pipeline.
IT teams use this skill to profile internal enterprise applications under load, identifying scalability issues in native modules. It supports performance analysis in CI/CD environments, ensuring apps handle high user concurrency efficiently.
Developers working with frameworks like React Native or Flutter profile underlying native components on iOS/macOS. This skill helps isolate performance problems in bridge code or platform-specific modules, aiding in optimization for hybrid apps.
Offer performance optimization consulting to app development companies, using this skill to analyze traces and provide actionable insights. Revenue comes from project-based fees or retainer contracts for ongoing profiling support.
Integrate this CLI profiling workflow into a SaaS platform that automates performance testing for iOS/macOS apps. Revenue is generated through subscription tiers based on usage volume and advanced analytics features.
Provide training courses or workshops teaching developers how to use xctrace and scripts for native app profiling. Revenue streams include one-time workshop fees, online course sales, and certification programs.
π¬ Integration Tip
Integrate the scripts into CI/CD pipelines for automated performance regression testing; ensure the binary paths and load addresses are dynamically configured to handle different build environments.
Full Windows desktop control. Mouse, keyboard, screenshots - interact with any Windows application like a human.
Control Android devices via ADB with support for UI layout analysis (uiautomator) and visual feedback (screencap). Use when you need to interact with Android apps, perform UI automation, take screenshots, or run complex ADB command sequences.
Build, test, and ship iOS apps with Swift, Xcode, and App Store best practices.
Control macOS GUI apps visually β take screenshots, click, scroll, type. Use when the user asks to interact with any Mac desktop application's graphical interface.
Best practices and example-driven guidance for building SwiftUI views and components. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens, or needing component-specific patterns and examples.
Write safe Swift code avoiding memory leaks, optional traps, and concurrency bugs.