android-profiler
它能做什么
这个技能记录 Android 性能数据,并进行分析以找出瓶颈。内容涵盖系统跟踪、CPU 调用栈、GPU 内存和堆分析以及 Perfetto 跟踪。适合追查卡顿、启动缓慢、ANR 或内存占用问题的 Android 开发者。
适用场景
- ✓当你的 Android 应用启动缓慢、卡顿或掉帧,并且你想记录一份跟踪的时候。
- ✓当你想分析 ANR 或界面问题的 Perfetto 跟踪时。
- ✓当你需要堆分析来查看 Android 应用的内存占用时。
技能链接
https://github.com/android/skills/blob/main/profilers/android-profiler/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的应用启动太慢。请记录跟踪,并告诉我时间都花在了哪里。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能首先确保你清楚自己想记录什么,然后遵循带有预检查的记录指南。接着它会把数据交给分析指南,找出瓶颈。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
常见问题
它会猜测我想分析什么吗?
不会。如果请求不清楚,该技能会先询问你想记录或分析什么。
它可以记录哪些类型的数据?
它可以记录系统跟踪、CPU 调用栈、Vulkan GPU 内存,以及 Java 或原生堆分析。
需要先进行设置吗?
需要。该技能会先读取设置指南,以确定其根目录位置并检查依赖。
详情
作者的原始描述
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,
repo: android/skills
热度
- GitHub 星标
- 10k
- 排名
- #11931
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/29
评论
- …
同一仓库的更多技能
agp-9-upgrade
10k帮你的智能体把 Android 应用升级到 Android Gradle Plugin 9,并处理其中的破坏性变更。不适用于多平台项目。
camerax
10k帮你的智能体使用 CameraX 构建 Android 相机功能,包括视频录制、硬件控制以及 ML Kit 和 Media3 效果。
android-for-cars-parked-apps
10k帮你的智能体把 Android 视频、游戏或浏览器应用调整为可在 Android Auto 和 Android Automotive 上以停放应用形式运行。
appfunctions
10k帮你的智能体在 Android 应用中找到关键工作流,并把它们暴露为 AI 智能体和语音命令可以运行的 AppFunctions。