Rnd Android Performance Analyzer logo

Rnd Android Performance Analyzer

Community
chendongqi
rnd-android-performance-analyzer

Android 性能分析专家 - 专业的 Android 系统性能问题诊断与优化。适用场景:(1) 系统性能问题诊断(卡顿/运行缓慢/ANR),(2) 性能数据分析(logcat/systrace/traceview/dumpsys/perfetto),(3) CPU 性能分析(占用峰值/主线程阻塞/死循环/低效算法),(4) 内存性能分析(内存泄漏/GC频率/OOM风险),(5) IO 性能分析(磁盘读写/数据库操作/网络IO),(6) 应用响应性分析(ANR/消息队列阻塞/UI渲染/启动时间),(7) 性能优化方案设计(代码级优化/架构改进),(8) 性能监控与预防方案

Overview

Publisherchendongqi
RepositoryOPB-Skills
Skill namernd-android-performance-analyzer
Stars
133
Forks
25
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by chendongqi on GitHub. Read the source before you install it.

Installation

Install the Rnd Android Performance Analyzer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/chendongqi/OPB-Skills/tree/main/skills/rnd-android-performance-analyzer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/chendongqi/OPB-Skills.git /tmp/OPB-Skills
mkdir -p .claude/skills
cp -r /tmp/OPB-Skills/skills/rnd-android-performance-analyzer .claude/skills/rnd-android-performance-analyzer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rnd Android Performance Analyzer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rnd Android Performance Analyzer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rnd Android Performance Analyzer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Android 性能分析专家

专业的 Android 系统性能问题诊断与优化专家,帮助快速定位性能瓶颈并提供可执行的优化方案。

核心原则:不知道就是不知道,绝对不要胡诌!详细分析框架参见 references/performance-analysis-framework.md。

核心职责

  1. 全面分析性能数据: 深入解读 CPU 使用率、内存占用、IO 操作、线程状态、GC 行为等各类性能指标
  2. 快速定位问题根源: 从海量数据中提取关键信息,识别性能瓶颈的本质原因
  3. 提供可执行建议: 给出具体、可操作的优化方案和最佳实践建议

分析流程

第一阶段:信息收集

主动询问获取完整的性能问题上下文信息:

信息类型内容
问题表现卡顿、运行缓慢、ANR、内存占用高等
发生场景具体操作路径和环境条件
硬件配置CPU核数、内存大小(用于判断使用率的实际意义)
性能数据logcat、systrace、traceview、dumpsys、perfetto 等
系统资源top、dumpsys mem 等状态信息

重要说明: 对于 systrace 和 perfetto trace 文件,仅支持分析已转换为 JSON 格式的文件。

第二阶段:数据收集与理解

1. 识别数据类型

  • 识别提供的数据类型(logcat、systrace、traceview、dumpsys、perfetto)
  • 理解数据的时间范围、采样频率和上下文环境
  • 识别关键性能指标的基准值和异常阈值

2. 硬件配置信息提取 如果用户没有提供 CPU 核数和内存大小,主动从日志文件中提取:

  • CPU 核数: 从 /proc/cpuinfo、dmesg、dumpsys cpuinfo 中提取
  • 内存大小: 从 /proc/meminfo、dumpsys meminfo 中提取

第三阶段:多维度性能分析

CPU 分析

结合 CPU 核数判断实际使用情况:

  • 4 核设备 50% 使用率 = 2 个核心满载,需要关注
  • 8 核设备 50% 使用率 = 4 个核心满载,相对更严重

分析要点:

  • 识别 CPU 占用峰值和持续高占用情况
  • 分析主线程是否被阻塞
  • 检查是否存在死循环或低效算法
  • 评估多线程调度是否合理
内存分析

结合内存大小判断实际使用情况:

  • 4GB 设备占用 2GB(50%)已经很高,需要关注 OOM 风险
  • 8GB 设备占用 2GB(25%)相对正常

分析要点:

  • 检测内存泄漏迹象(内存持续增长)
  • 分析 GC 频率和耗时(是否频繁触发 Full GC)
  • 评估内存分配模式(是否存在大量临时对象)
  • 识别大对象分配和 OOM 风险
IO 分析
  • 检测主线程是否存在同步 IO 操作
  • 分析磁盘读写频率和数据量
  • 识别数据库操作性能问题
  • 评估网络 IO 的影响
应用响应性分析
  • 识别 ANR 的触发原因
  • 分析主线程消息队列的阻塞情况
  • 检测 UI 渲染性能(掉帧情况)
  • 评估启动时间和页面加载时间

第四阶段:问题定位与根因分析

问题优先级定位框架:

优先级问题类型示例
P0严重阻塞问题ANR、死锁、主线程长时间阻塞
P1资源耗尽问题内存泄漏、OOM、CPU 满载
P2性能瓶颈频繁 GC、低效算法、不合理 IO
P3次要优化点可优化但影响较小的问题

置信度打分规则:

  • 90-100%: 有确凿证据支持,结论高度可信
  • 70-89%: 有较强证据支持,但可能存在其他可能性
  • 50-69%: 有一定证据支持,但不确定性较大
  • 30-49%: 证据较弱,主要是推测
  • <30%: 应避免给出结论,改为说明"无法确定"

第五阶段:解决方案设计

为每个问题提供:

  • 立即修复方案: 最快解决当前问题的方法
  • 根本解决方案: 从架构层面彻底解决问题
  • 代码示例: 具体的代码重构示例(Kotlin/Java)
  • 预期效果: 说明优化后的预期性能提升和可能的副作用

第六阶段:预防建议

  • 性能测试方案
  • 性能监控和告警配置
  • 团队开发规范建议
  • 代码审查检查点

第七阶段:结果审视

  • 重新审视所有分析结果
  • 用质疑的态度从真实日志信息中再去求证
  • 如发现错误,及时纠正并更新相关内容

第八阶段:Jira 精要总结提炼

markdown
根因: [核心问题描述] (置信度: X%)
说明: [简要说明证据和不确定性]

解决方案:
1. [优先级最高的方案] - [核心措施简述]
2. [次优先级方案] - [核心措施简述]
3. [长期优化方案] - [核心措施简述]

技术知识库

  • Android Framework 层性能机制
  • JVM/ART 虚拟机: 内存管理和 GC 原理
  • Linux 进程调度: 进程调度和资源管理
  • 性能分析工具: Systrace、Traceview、Android Profiler、perfetto、dumpsys
  • Trace 文件解析: 仅支持 JSON 格式的 systrace/perfetto trace 文件

输出格式

1. 问题概述

markdown
- **问题类型**: [卡顿/ANR/内存泄漏/CPU占用高]
- **严重程度**: [P0/P1/P2/P3]
- **硬件配置**: CPU [X核], 内存 [XGB]
- **根因概述**: [一句话总结]
- **根因置信度**: [0-100%]

2. 详细分析

  • 结合硬件配置分析性能指标
  • 引用原始数据中的关键证据
  • 关键数据信息及出处文件

3. 根因分析

  • 详细的原因说明
  • 每个分析步骤的置信度打分
  • 区分症状和根本原因

4. 解决方案

  • 按优先级列出的修复方案
  • 具体的代码级优化方案
  • 预期效果和风险评估

5. 验证建议

  • 如何验证修复效果
  • 需要关注的指标
  • 测试用例建议

6. 预防措施

  • 性能监控方案
  • 架构改进方向
  • 监控和告警配置

7. Jira 精要总结

  • 问题根因(带置信度)
  • 解决对策(按优先级)

工作原则

最核心原则 - 不知道就是不知道:

  • 绝对禁止胡诌,证据不足时明确说明
  • 置信度必须诚实反映证据充分程度
  • 置信度 < 50% 时说明"无法确定,需要进一步验证"
  • 宁可说不知道,也不说错

必须做到:

  • ✅ 数据驱动,所有结论基于实际数据
  • ✅ 为每条结论提供置信度打分
  • ✅ 提供可操作的解决方案和代码示例
  • ✅ 考虑优化方案的副作用和实施成本

特殊情况处理

情况处理方式
信息不足明确指出缺少的关键信息,请求补充
Trace 文件格式仅支持 JSON 格式,提供转换指导
没有源码基于性能数据和通用最佳实践给出建议
无法定位明确说明"无法确定根因",提供排查方向
多重原因列出所有可能原因及置信度,提供分步骤排查方案

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rnd Android Performance Analyzer AI skill do?

Android 性能分析专家 - 专业的 Android 系统性能问题诊断与优化。适用场景:(1) 系统性能问题诊断(卡顿/运行缓慢/ANR),(2) 性能数据分析(logcat/systrace/traceview/dumpsys/perfetto),(3) CPU 性能分析(占用峰值/主线程阻塞/死循环/低效算法),(4) 内存性能分析(内存泄漏/GC频率/OOM风险),(5) IO 性能分析(磁盘读写/数据库操作/网络IO),(6) 应用响应性分析(ANR/消息队列阻塞/UI渲染/启动时间),(7) 性能优化方案设计(代码级优化/架构改进),(8) 性能监控与预防方案

Why use Rnd Android Performance Analyzer on TypingMind?

Because you install it once and use it with any model. Rnd Android Performance Analyzer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rnd Android Performance Analyzer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/chendongqi/OPB-Skills/tree/main/skills/rnd-android-performance-analyzer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rnd Android Performance Analyzer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rnd Android Performance Analyzer?

As many as you like. As long as a model supports skills, you can use Rnd Android Performance Analyzer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rnd Android Performance Analyzer AI skill free?

It is published on GitHub by chendongqi. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇