query_memory_usage
Get memory usage percentiles from Android Vitals (anonymous RSS plus swap) to assess app memory performance. Supports P50/P90/P99/P75/P95 and breakdowns by process or app state.
Instructions
Query overall app memory usage percentiles (anonymous RSS plus swap, the figure Android vitals reports as memory usage): anonRssAndSwapMemoryUsageP50/P90/P99 in bytes plus distinctUsers. Also supports P75 and P95 via metrics, and the processName and appState dimensions. Use query_bitmap_memory_usage to see how much of it is bitmaps. Daily aggregation only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default: 50) | |
| filter | No | AIP-160 filter over dimensions, e.g. "versionCode = 415" | |
| metrics | No | Metrics to fetch (default: anonRssAndSwapMemoryUsageP50, anonRssAndSwapMemoryUsageP90, anonRssAndSwapMemoryUsageP99, distinctUsers) | |
| end_date | Yes | End date (inclusive) as YYYY-MM-DD, e.g. '2026-08-13' | |
| dimensions | No | Break the metrics down by these dimensions, e.g. ['versionCode','deviceModel'] | |
| start_date | Yes | Start date (inclusive) as YYYY-MM-DD, e.g. '2026-08-01' | |
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) | |
| aggregation_period | No | Aggregation granularity — this metric set only supports DAILY |