Android Profiler

android/skills/profilers/android-profiler

作者 android42dc2270e960Complete terms in LICENSE.txt7.7K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫13 天前更新

Manages Android performance profiling and debugging. Triggers when the user asks to record or analyze Android performance data, such as system traces, heap dumps, method recordings, callstack samples, memory allocations, or investigate bottlenecks, jank, memory leaks, and app startup issues on Android, or when the user asks to write, debug, or execute ad-hoc SQL queries. Applies to both user and system apps or services.

AI 產生的概覽

引導 Android 效能分析:錄製系統追蹤、堆積轉儲與方法記錄,並以 Perfetto SQL 進行分析。

功能
此技能統籌 Android 效能分析與除錯工作。它會先釐清使用者意圖,將錄製請求交由錄製協調器處理(包含預檢與相依性檢查),並將分析請求交由分析協調器處理。分析工作流程使用 Perfetto 追蹤分析與 SQL,並提供 CPU、圖形、I/O、IPC、記憶體與電源等子系統的提示,以及針對卡頓、CPU 分析、堆積轉儲與記憶體計數器的範例追蹤設定。
適用情境
當使用者需要錄製或分析 Android 效能資料(例如系統追蹤、堆積轉儲、方法記錄、呼叫堆疊取樣或記憶體配置)時使用。它也適合排查 Android 上的瓶頸、卡頓、記憶體洩漏與應用程式啟動問題,包括對追蹤資料執行臨時 SQL 查詢。
執行需求
僅為指示文件,未附帶指令碼。需要依其環境設定參考設定技能根路徑,並依賴隨附的 Perfetto trace_processor 與參考文件。錄製與分析裝置或追蹤資料需要相應的 Android 工具,以及對目標應用程式或裝置的存取權限。

Android Profiler Orchestrator

Your primary role is Intent Disambiguation and Routing; route the user to the correct workflow or prepare an execution plan for the user. Work with the user to finalize the plan and then proceed with the plan execution, addressing singular as well as composite needs.

Prerequisites and Setup

Before executing any workflows, read references/env_setup.md [blocked] (it sits next to this file in the skill root). 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 $SKILL_ROOT/recording/recording_orchestrator.md. 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 $SKILL_ROOT/analysis/analysis_orchestrator.md.

來源與署名

來源:android/skills位於profilers/android-profiler提交42dc227

授權條款: Complete terms in LICENSE.txt

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 android/skills 的技能

Wear Compose M3

android

指導建置、更新與移轉 Wear OS Compose Material3 應用程式,並提供標準元件範例與版本規則。

Software Development7.7K13 天前更新

Display Glasses With Jetpack Compose Glimmer

android

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer that adheres to the Glimmer design system for optimized glasses styling.

待分類7.7K13 天前更新

Play Billing Library Version Upgrade

android

引導將 Android 專案從舊版 Google Play 帳務程式庫升級到最新穩定版本。

Software Development7.7K13 天前更新

Leanback To Compose Tv Migration

android

Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv). Use this skill for Leanback to Compose migrations, including browse screen, settings screen, authentication screen, login screen, or video playback screen migrations, or when replacing BrowseSupportFragment, LeanbackSettingsFragment, PreferenceFragment, BaseLeanbackPreferenceFragmentCompat, VideoSupportFragment, GuidedStepSupportFragment, SearchSupportFragment, VerticalGridSupportFragment, Presenter, ArrayObjectAdapter, or CursorMapper with modern Compose equivalents, implementing immersive carousels with focus memory, Media3 video playback with PlayerSurface, or custom 10-foot hero layouts.

待分類7.7K13 天前更新

Testing Setup

android

分析 Android 專案的測試設定,並安裝測試框架、測試基礎設施,以及單元、UI、截圖與端對端測試。

Software Development7.7K13 天前更新

Styles

android

引導將 Android Jetpack Compose 自訂元件與主題遷移至實驗性 Styles API。

Software Development7.7K13 天前更新