Agent Skills › android/skills › android-profiler

android-profiler

GitHub

Android性能分析技能,用于录制和分析系统追踪、CPU堆栈、GPU内存及Java堆等数据。支持诊断UI卡顿、ANR、启动延迟、电池消耗、内存泄漏等问题,通过Perfetto追踪和SQL查询定位性能瓶颈。

profilers/android-profiler/SKILL.md android/skills

Trigger Scenarios

录制系统追踪或CPU/内存调用栈 分析Perfetto追踪以排查UI卡顿或ANR 调查CPU瓶颈、IPC风暴或线程调度问题 诊断电池耗电、内存压力或OOM问题

Install

npx skills add android/skills --skill android-profiler -g -y
More Options

Non-standard path

npx skills add https://github.com/android/skills/tree/main/profilers/android-profiler -g -y

Use without installing

npx skills use android/skills@android-profiler

指定 Agent (Claude Code)

npx skills add android/skills --skill android-profiler -a claude-code -g -y

安装 repo 全部 skill

npx skills add android/skills --all -g -y

预览 repo 内 skill

npx skills add android/skills --list

SKILL.md

Frontmatter
{
    "name": "android-profiler",
    "license": "Complete terms in LICENSE.txt",
    "metadata": {
        "author": "Google LLC",
        "keywords": [
            "android performance",
            "debugging",
            "profiling",
            "recording",
            "trace analysis",
            "memory leaks",
            "bottleneck",
            "jank",
            "SQL"
        ],
        "last-updated": "2026-10-23"
    },
    "description": "Records and analyzes Android performance data and diagnoses performance bottlenecks across user apps, system apps, and system services, even if the user does not explicitly mention profiling or traces. Use when: recording system traces, CPU call stacks, Vulkan GPU\/DRM memory, or Java\/native heap profiles; analyzing Perfetto traces for UI jank, frame drops, ANRs, or app startup latency issues; investigating CPU bottlenecks, IPC\/Binder storms, or thread scheduling stalls; diagnosing battery drain, modem power rails, and kernel wake locks; debugging memory pressure, Low Memory Kills (LMK), OOMs, leaks, and allocation churn; performing A\/B baseline trace comparisons to find regressions; executing ad hoc PerfettoSQL queries on Android traces."
}

Your primary role is to figure out what the user wants to do (disambiguation), find the right instructions for it (workflow discovery), and follow them step-by-step (following the execution plan). If the request is unclear, work with the user to finalize the execution plan before proceeding.

Prerequisites and Setup

Before executing any workflows, read references/env_setup.md. It defines what to set $SKILL_ROOT to - the anchor every other path in this skill is written against.

Intent Disambiguation

Do not guess the user's intent. If the user request is not clear, ask the user what they want to do before proceeding.

Recording

Route all recording requests through recording/recording_orchestrator. This defines guidelines and pre-flight checks or dependency checks that apply to all recording workflows, and ensures you have the necessary setup to proceed. Read the orchestrator and execute the plan it describes based on what the user wants to record (for example, a system trace or a heap dump).

Analysis

Route all analysis requests through analysis/analysis_orchestrator.

Version History

  • 6daa53e Current 2026-11-02 23:11
  • 5bda39f 2026-10-19 06:11

    更新技能文件(2026-10-14)

  • 6685cac 2026-08-19 22:25

Same Skill Collection

build-system/agp/agp-9-upgrade/SKILL.md
camera/camerax/SKILL.md
device-ai/ml-kit-genai-prompt-api/SKILL.md
devtools/android-cli/SKILL.md
identity/restore-credentials/SKILL.md
identity/verified-email/SKILL.md
jetpack-compose/jetpack-compose-performance/SKILL.md
jetpack-compose/migration/migrate-xml-views-to-jetpack-compose/SKILL.md
jetpack-compose/theming/styles/SKILL.md
media/media3-cast-integration/SKILL.md
navigation/navigation-3/SKILL.md
navigation/navigation-event/SKILL.md
performance/anr-audit-and-fix/SKILL.md
performance/r8-analyzer/SKILL.md
play/engage-sdk-integration/SKILL.md
play/play-billing-library-version-upgrade/SKILL.md
play/play-policy-insights/SKILL.md
profilers/perfetto-sql/SKILL.md
profilers/perfetto-trace-analysis/SKILL.md
security/android-intent-security/SKILL.md
security/android-permissions-security/SKILL.md
system/edge-to-edge/SKILL.md
system/glance-canonical-layouts/SKILL.md
testing/testing-setup/SKILL.md
wear/wear-compose-m3/SKILL.md
xr/display-glasses-with-jetpack-compose-glimmer/SKILL.md
xr/projected-hardware/SKILL.md
cars/android-for-cars-parked-apps/SKILL.md
device-ai/appfunctions/SKILL.md
device-ai/litert/litert-lm/SKILL.md
device-ai/litert/litert-runtime/SKILL.md
device-ai/mlkit-agent-api/SKILL.md
jetpack-compose/adaptive/SKILL.md
jetpack-compose/ink/ink-app-builder/SKILL.md
jetpack-compose/ink/ink-custom-brush-builder/SKILL.md
system/glance-appwidget-updates-and-memory/SKILL.md
tv/leanback-to-compose-tv-migration/SKILL.md
wear/wear-widgets/SKILL.md

Metadata

Files
0
Version
6daa53e
Hash
d3083b15
Indexed
2026-08-19 22:25

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-05 02:05
浙ICP备14020137号-1