Android profiler

From huytran1120/vie-agentic-skills · View interactive version

Android profiler is an AI agent skill from the GitHub repository huytran1120/vie-agentic-skills. 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 pro

How to use this skill

Skill file

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 CODE0. 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.

VAS installation notes

Distributed from android/skills at

6daa53ef27fa2aa87827d183a85c06cedceca833 under Apache-2.0, by Google LLC and

the Android Open Source Project. Original copyright headers are retained and

the complete upstream LICENSE.txt is included with every standalone skill.

Only the frontmatter description/license formatting and these VAS notes differ;

the original workflow and all supporting files are preserved.

Use the VAS website's Copy Agent Prompt or ./vas install <skill-id> --target <agent>

with VAS's existing agent-folder mapping. Installing this skill only copies or

links its files and writes the CLI-compatible receipt. It does not install or

update Android CLI, SDK, Gradle, JDK, Python packages, plugins, MCP servers,

models or native binaries, connect to devices/services, run bundled helpers,

collect traces or send app source, credentials or application data.

Before using a workflow, check the project's compatible SDK/JDK/Gradle/library

versions and any required device, emulator, preview access or account. External

documentation, libraries, model weights and services are not bundled snapshots

and may have separate terms. Obtain explicit permission before downloads,

installer execution, package installation, telemetry, network requests, device

changes, sensitive-data processing or paid operations. Review downloaded code

and its provenance before execution; never pipe a network installer into a shell.

Surface missing prerequisites and command failures rather than inventing results.

The r8-analyzer protobuf converter needs a compatible google.protobuf runtime

(the bundled generated module declares version 6.33.4); this dependency is not

installed automatically. Its keep_radius_pb2.py helper is bundled locally.

play-policy-insights includes its scanner, scraper and template_engine helpers;

scraping Play Store pages requires network access and consent, and its report

is assistance, not a guarantee of Google Play approval or legal compliance.

android-profiler includes the upstream Perfetto Python launcher, not native

Perfetto binaries: running it can download/cache and execute a platform binary.

Review its pinned URL/hash and cache destination before approving execution.

Keep upstream executable permissions; the launcher is non-executable upstream

and can be invoked with python3 only after approval. No helpers were run and

no runtime packages or external binaries were installed during this import.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.