Chuyển đến nội dung
Skillpedia
Ứng dụng di động10k · #11931

android-profiler

Skill này làm gì

Skill này ghi lại dữ liệu hiệu năng Android và phân tích để tìm nút thắt cổ chai. Nó bao quát system trace, ngăn xếp lời gọi CPU, bộ nhớ GPU, heap và các trace Perfetto. Nó dành cho lập trình viên Android đang tìm nguyên nhân giật, khởi động chậm, ANR hoặc sử dụng bộ nhớ nhiều.

Khi nào nên dùng

  • ✓Khi ứng dụng Android của bạn khởi động chậm, bị giật hoặc rớt khung hình và bạn muốn ghi lại một trace.
  • ✓Khi bạn muốn phân tích một trace Perfetto cho lỗi ANR hoặc vấn đề giao diện.
  • ✓Khi bạn cần một heap profile để xem mức sử dụng bộ nhớ trong ứng dụng Android.

Liên kết skill

https://github.com/android/skills/blob/main/profilers/android-profiler/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/android/skills/blob/main/profilers/android-profiler/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Ứng dụng của tôi mất quá lâu để khởi động. Ghi lại một trace và cho tôi biết thời gian đi đâu.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill trước tiên đảm bảo bạn biết mình muốn ghi lại gì, rồi làm theo hướng dẫn ghi có các kiểm tra trước khi chạy. Sau đó nó chuyển dữ liệu sang hướng dẫn phân tích để tìm các nút thắt cổ chai.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Nó có tự đoán tôi muốn đo gì không?

Không. Nếu yêu cầu không rõ, skill sẽ hỏi bạn muốn ghi lại hoặc phân tích gì trước.

Nó có thể ghi lại những loại dữ liệu nào?

Nó có thể ghi system trace, ngăn xếp lời gọi CPU, bộ nhớ GPU Vulkan, và heap Java hoặc native.

Có cần thiết lập trước không?

Có. Skill đọc một hướng dẫn thiết lập trước để đặt thư mục gốc và kiểm tra các phụ thuộc.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
10k
Vị trí xếp hạng
#11931
Giấy phép
Apache-2.0
Cập nhật
29/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự