Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Android Profiler?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/network-user-android-profiler)
---
name: android-profiler
description: 'Records and analyzes Android performance data and diagnoses bottlenecks
across user apps, system apps, and system services, even when profiling or traces
aren''t mentioned. Use when: recording system traces, CPU call stacks, or Java/native
heap profiles; analyzing Perfetto traces for UI jank, frame drops, ANRs, or app
startup latency; investigating CPU bottlenecks, IPC/Binder storms, or thread scheduling
stalls; querying battery, power rail, and wake lock data in traces; debugging memory
pressure, Low Memory Kills (LMK), OOMs, leaks, and allocation churn; comparing two
traces; executing ad hoc PerfettoSQL queries on Android traces. Don''t use for:
non-Android systems, backend server or RPC profiling, aggregate production telemetry,
or non-Perfetto SQL.'
license: Complete terms in LICENSE.txt
metadata:
author: Google LLC
last-updated: '2026-12-01'
keywords:
- android performance
- debugging
- profiling
- recording
- trace analysis
- memory leaks
- bottleneck
- jank
- SQL
---
Find the workflow that fits the user's request, then follow it step by step.
## Prerequisites and Setup
Before executing any workflows, read [`references/env_setup.md`](references/env_setup.md). It defines
what to set `$SKILL_ROOT` to - the anchor every other path in this skill is
written against.
## Workflows
Each workflow is `$SKILL_ROOT/workflows/<name>/<name>.md`. Pick the matching
workflow and follow its procedure.
- `perfetto-trace-recording`
- Use when: capturing a new system trace, Java heap dump, native heap profile, CPU callstack sample or custom trace config from a device with the Perfetto helper scripts, for example to investigate jank, slow startup or a memory leak.
- Needs: a device with USB debugging enabled; the package name for app profiles.
- `perfetto-trace-analysis`
- Use when: finding the root cause of jank, frame drops, slow app startup, latency stalls, thread or CPU bottlenecks, or memory problems in a Perfetto trace, even when the user only describes a symptom; pulling specific data (slices, threads, counters, memory) from a trace; or writing, debugging or running a PerfettoSQL query with `trace_processor`, including SQL errors, `SPAN_JOIN` and re-runnable scripts, even when a trace file is not provided.
- Needs: a trace file, URL or Perfetto UI link to query a trace or diagnose a symptom; nothing to write or debug a query.
How to choose:
- Follow the workflow that matches the request. If the user has a trace and only describes a symptom (for example, jank or slow startup), follow `perfetto-trace-analysis`.
- If the request has several jobs (for example, record a trace and then analyze it), state the plan (which workflows, in what order), then run them in that order.
Ask the user only when no workflow matches or a required input is missing (for
example, no trace to analyze, or no package name to record). When the request
is vague (for example, "my app is slow"), ask what the symptom is and whether
to record a new trace or analyze an existing one. When you ask, list the
workflows that apply to the user's request, with a one-line description of
what each does.