Skip to main content
Glama

get_frame_stats

Analyze frame rendering performance to identify jank in Android applications. Use this tool to detect UI stutters and optimize app smoothness during development and testing.

Instructions

Get frame rendering stats for an app - useful for detecting jank

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes
device_serialNo

Implementation Reference

  • The get_frame_stats tool handler function, registered via @mcp.tool() decorator. It retrieves frame rendering statistics for the specified Android package by executing the ADB command 'dumpsys gfxinfo <package_name> framestats'. This helps detect jank and performance issues in app rendering.
    @mcp.tool() def get_frame_stats(package_name: str, device_serial: str | None = None) -> str: """Get frame rendering stats for an app - useful for detecting jank""" return run_adb(["shell", "dumpsys", "gfxinfo", package_name, "framestats"], device_serial)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulkr/r_adb_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server