Skip to content
Back to skills

Android Profiler

ASecurity

'Records and analyzes Android performance data and diagnoses bottlenecks

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
developmentgojavasqldebuggingbackendperformance

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add network-user/dotcore-skills --skill android-profiler --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android Profiler?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android Profiler
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/network-user-android-profiler/badge)](https://www.skillsdirectory.com/skills/network-user-android-profiler)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md3.1 KB
  • references/env_setup.md484 B
  • references/perfetto/bin/trace_processor10.8 KB
  • references/perfetto/setup.md1.5 KB
  • references/perfetto/sql.md7.9 KB
  • workflows/perfetto-trace-analysis/perfetto-trace-analysis.md4.4 KB
  • workflows/perfetto-trace-analysis/references/compose.md5.4 KB
  • workflows/perfetto-trace-recording/perfetto-trace-recording.md4.8 KB
  • workflows/perfetto-trace-recording/references/example-configs/app_jank.pftxt1 KB
  • workflows/perfetto-trace-recording/references/example-configs/cpu_profile.pftxt773 B
  • workflows/perfetto-trace-recording/references/example-configs/java_heap_dump.pftxt566 B
  • workflows/perfetto-trace-recording/references/example-configs/long_background.pftxt1006 B
  • workflows/perfetto-trace-recording/references/example-configs/memory_counters.pftxt1 KB
  • workflows/perfetto-trace-recording/references/example-configs/native_heap.pftxt589 B
  • workflows/perfetto-trace-recording/references/example-configs/sched_cpu.pftxt836 B
  • workflows/perfetto-trace-recording/references/trace_config_reference.md4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.