asc performance
asc performance reads an app's power and performance metrics, Xcode's performance overview and diagnostic signatures and logs, and downloads them to files.
asc performance reads the power and performance data Apple collects from people using your app, the same data Xcode’s Organizer shows: metrics per app or per build, an app’s performance overview with regressions and trends, and diagnostic signatures (hangs, disk writes, launches) with their logs. Everything here is read-only in App Store Connect; only download writes a file on your machine. Picking an Apple team (--auth), output, pagination and exit codes work as described on the asc page; the flag tables below leave out --output, --pretty, --limit, --next, --paginate and --fields, which are explained there, except where a command gives them its own meaning.
Metrics and diagnostics come from builds that people have installed, so a new build has none until Apple has collected enough usage. Find build IDs with asc builds list --app 1234567890 (see asc: builds and TestFlight).
Notes that apply to the whole page:
- A flag marked “Required” is checked before any request; leaving it out exits
2. Where--appis required,ASC_APP_IDcan stand in for it. --metric-type,--device-typeand--platformtake comma-separated values. Metric types areANIMATION,BATTERY,DISK,HANG,LAUNCH,MEMORY,STORAGEandTERMINATION; the only platform isIOS. Device types are Apple’s model identifiers, such asiPhone15,2. Any other metric type or platform is refused before a request.
asc performance metrics list --app "1234567890"
asc performance diagnostics list --build-id "BUILD_ID"| Subcommand | What it does |
|---|---|
| metrics | Reads power and performance metrics for an app or a build. |
| overview | Reads an app’s Xcode performance overview. |
| diagnostics | Reads diagnostic signatures and their logs. |
| download | Saves metrics or diagnostic logs to a file. |
metrics
Power and performance metrics: animation, battery, disk, hangs, launch, memory, storage and termination.
| Subcommand | What it does |
|---|---|
| metrics list | Metrics for an app across its builds. |
| metrics view | Metrics for one build. |
metrics list
Lists the metrics for an app across its builds. JSON output is Apple’s metrics document; table and Markdown output summarize it as Version, Products, Trending Up and Regressions counts. The result is one response, with no pages.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required. |
— |
--metric-type |
Metric types to include, comma-separated. | all |
--device-type |
Device types to include, comma-separated. | all |
--platform |
Platform filter: IOS. |
— |
asc performance metrics list --app "1234567890" --metric-type "MEMORY,DISK" --device-type "iPhone15,2"metrics view
Shows the metrics for one build, in the same form as metrics list.
| Flag | What it does | Default |
|---|---|---|
--build-id |
The build ID. Required. | — |
--metric-type |
Metric types to include, comma-separated. | all |
--device-type |
Device types to include, comma-separated. | all |
--platform |
Platform filter: IOS. |
— |
asc performance metrics view --build-id "BUILD_ID" --metric-type "MEMORY" --device-type "iPhone15,2"overview
Reads an app’s Xcode performance overview: aggregated performance data, regressions and trends. JSON output keeps Apple’s complete overview, including metric datasets and signatures; table and Markdown output summarize the app and its insight counts. The result is one response, with no pages.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required. |
— |
--device-type |
Device types to include, comma-separated. | all |
asc performance overview --app "1234567890" --device-type "iPhone15,2"diagnostics
Diagnostic signatures (groups of similar hangs, disk writes or slow launches) and the logs behind them.
| Subcommand | What it does |
|---|---|
| diagnostics list | Diagnostic signatures of a build. |
| diagnostics view | Logs of one signature. |
diagnostics list
Lists the diagnostic signatures of a build. JSON output is Apple’s list; table and Markdown output show ID, Type, Weight, Insight and Signature for each one.
| Flag | What it does | Default |
|---|---|---|
--build-id |
The build ID. Required. | — |
--diagnostic-type |
Signature types to include, comma-separated: DISK_WRITES, HANGS, LAUNCHES. |
all |
Notes:
--fieldstakesdiagnosticType,signature,weight,insightandlogs.--limitis 1–200;--paginatereads every page, 200 at a time.--build-idis still required with--next.--nextcan’t be combined with--diagnostic-typeor--fields, because thelinks.nextURL already carries them.
asc performance diagnostics list --build-id "BUILD_ID" --diagnostic-type "HANGS" --limit 50diagnostics view
Shows the diagnostic logs of one signature; take the signature ID from diagnostics list. JSON output is Apple’s log document; table and Markdown output summarize it as Version, Products, Logs and Insights counts.
| Flag | What it does | Default |
|---|---|---|
--id |
The diagnostic signature ID. Required. | — |
--limit |
Number of logs to return, 1–200. | Apple’s default |
asc performance diagnostics view --id "SIGNATURE_ID" --limit 50download
Saves metrics (for an app or a build) or the diagnostic logs of a signature to a file, then prints a receipt: downloadType (metrics or diagnostic-logs), the ID used (appId, buildId or diagnosticSignatureId), filePath, fileSize, decompressed and, when it decompressed, decompressedPath and decompressedSize. On this command --output is the file path, and --output-format picks the format of the receipt.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID) whose metrics to save. |
— |
--build-id |
The build ID whose metrics to save. | — |
--diagnostic-id |
The diagnostic signature ID whose logs to save. | — |
--output |
File path to write. | perf_power_metrics_ID.json or diagnostic_logs_ID.json in the current folder |
--output-format |
Format of the receipt: json, table, markdown. |
json |
--decompress |
Also writes a decompressed copy when Apple sent the data gzip-compressed. | off |
--metric-type |
Metric types to include, comma-separated. Metrics only. | all |
--device-type |
Device types to include, comma-separated. Metrics only. | all |
--platform |
Platform filter: IOS. Metrics only. |
— |
--limit |
Number of logs to save, 1–200. Diagnostic logs only. | Apple’s default |
Notes:
- Give exactly one of
--app,--build-idor--diagnostic-id; more than one is refused. With none of them,ASC_APP_IDis used, and without that the command exits2withError: --app, --build-id, or --diagnostic-id is required. --metric-type,--device-typeand--platformare refused with--diagnostic-id, and--limitis refused without it.- An existing file is never replaced: the command fails with
output file already exists. Pick another--outputor remove the file first. - With
--decompressand compressed data, an--outputending in.jsongets the compressed data at the same path plus.gz, and the decompressed copy at the path you gave.
asc performance download --diagnostic-id "SIGNATURE_ID" --output ./diagnostic.json --decompress