Tools
native-profiler-start
— start profiling on a booted device. iOS: xctrace recording for CPU, hangs, and leaks.
native-profiler-stop
— stop the profiler and export trace data to timestamped XML files.
native-profiler-analyze
— parse exported trace data and return a structured bottleneck payload.
profiler-stack-query
— drill into parsed data: hang stacks, function callers, thread breakdown, leak details.
profiler-load
— list and reload previous trace sessions from disk for re-investigation.
Platform Support
iOS
Fully supported. Backend: Xcode Instruments via
xctrace
on a booted simulator or connected device. Requires Xcode command-line tools on PATH.
Android
Not yet implemented. An Android backend (Perfetto or simpleperf via
adb
) is planned; today
native-profiler-start
rejects Android serials with a clear "iOS-only for now" error.