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天前更新