1. Tools - : start profiling on a booted device. iOS: xctrace recording for CPU, hangs, and leaks. - : stop the profiler and export trace data to timestamped XML files. - : parse exported trace data and return a structured bottleneck payload. - : drill into parsed data: hang stacks, function callers, thread breakdown, leak details. - : list and reload previous trace sessions from disk for re-investigation. - Physical iPhone: not supported; use a simulator. --- 2. Platform Support - iOS : Backend: Xcode Instruments via on a booted simulator or connected device. Requires Xcode command-line tool…