Mobile GPU Profiling: Mali and Adreno counters

    by Paul Estephan

    1

    Each needs a different fix, so guessing wastes days.

    Free

    Security scanned

    Works with the AI Agents you already use

    Mobile GPU Profiling: Mali and Adreno counters

    Example session with this skill installed

    Profile the GPU on my Mali phone while the game runs and tell me what to fix first.

    • Read your context and instructions
    • Compiled the mobile gpu profiling

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Find out what the phone's GPU is really spending its time on

    Fps, memory and temperature tell you that a mobile game is slow. This skill reads the GPU's hardware counters to tell you why: whether the GPU is the limit at all, and if it is, whether the cost is pixels, vertices, textures, bandwidth or shader math. Each needs a different fix, so guessing wastes days. In one field capture, a city scene that looked draw-call heavy turned out to be fragment-bound at 94% GPU, so cutting draws would not have helped.

    Use it as the escalation step after a first-pass fps/memory triage, when deciding whether a High-tier effect fits the budget, or to find the expensive shader.

    gpu_profile.py subcommands

    • detect: reports the device, GPU vendor and model, driver, Android version and screen size, and which profiling path to use.
    • mali-capture: on first use, builds a GPU-only counter config from Arm's template for your GPU (cached). Then it runs a headless Arm Streamline capture of your debuggable app over adb, measures fps from SurfaceFlinger at the same time, and analyses the result. It also cleans up stale gatord agents that would otherwise cut the capture short.
    • mali-analyze: re-reads an existing .apc capture, with optional fps and screen overrides.
    • gpu-busy: samples the kernel's GPU busy and clock nodes (Adreno kgsl, plus some Mali builds) for a quick utilisation read without a profiler.

    What the report contains

    report.md + metrics.json with a ranked verdict (GPU-, fragment-, geometry- or CPU-bound) and a fix for each finding. Metrics include GPU utilisation computed row by row across DVFS clock changes, fragment vs non-fragment and tiler load, fragments per screen pixel, render passes per frame, ALU instructions per fragment, compressed and mipmapped texture share, early/late ZS and Forward Pixel Kill, back-face culling, 16-bit varyings, bandwidth in MB per frame and GB/s, and GPU ms per frame. It also adds Arm Performance Advisor's HTML report when the capture has frame markers.

    Shader cost ranking

    • malioc_batch.py runs the Mali Offline Compiler over a directory of GLSL ES or SPIR-V shaders. It ranks them by cycles per pixel or per vertex and names the bounding pipeline (arithmetic, load/store, varying, texture). It flags register pressure and occupancy, stack spilling, late-ZS/discard and low fp16 use. Each compiled shader is labelled with your source file, so you know which material to simplify.
    • godot_dump_shaders.sh dumps the exact GLSL ES shaders a Godot 4 (Compatibility) project compiles, via Mesa on the desktop. It uses a throw-away copy of the user data, so saves stay untouched and the shader cache doesn't hide compiles. The references also cover getting shaders out of Unity, three.js and Bevy.

    Adreno

    There is a metric-to-fix table for Snapdragon Profiler (Realtime, Trace and Snapshot) and Android GPU Inspector, plus Adreno-specific behaviour (FlexRender, LRZ).

    Privacy

    Everything runs locally. The scripts talk only to your phone over adb and to vendor tools you installed yourself (Arm Performance Studio, malioc, Godot/Mesa). No network requests, no telemetry.

    The Mali path is field-tested on a Mali-G72 (Bifrost) phone on Android 10. The Adreno path is documented but not yet tested on a device; metric names may differ by Snapdragon Profiler version. Arm and Qualcomm tools are not bundled; install them from the vendors.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    • Free with an Agensi account

    Software
    Python 3.10+adb (Android platform-tools)Arm Performance Studio (Mali)
    Snapdragon Profiler
    orAGI (Adreno)
    A debuggable build of the app

    Arm Performance Studio is a free download from Arm and provides Streamline and malioc for Mali captures. Adreno needs Snapdragon Profiler or Android GPU Inspector.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    Read what the phone GPU is actually doing from its hardware counters: headless Arm Streamline capture on Mali with a ranked report (fragment or vertex bound, overdraw, bandwidth, textures), malioc shader cost ranking, and the Adreno route via Snapdragon Profiler or AGI.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Mobile GPU Profiling: Mali and Adreno counters on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Game Development

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Game Development.

    Free