跳到正文
Skillpedia
移动应用10k · #11931

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/android/skills/blob/main/profilers/android-profiler/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能