get_flutter_performance_overlay
Display Flutter rendering performance overlay to analyze UI frame rates, identify rendering bottlenecks, and optimize app performance during development.
Instructions
Get Flutter rendering performance info
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:1013-1022 (handler)The main handler function for the 'get_flutter_performance_overlay' tool, registered via @mcp.tool() decorator. It executes ADB command to dump Flutter gfxinfo framestats for the given package on the specified device.@mcp.tool() def get_flutter_performance_overlay( package_name: str, device_serial: str | None = None ) -> str: """Get Flutter rendering performance info""" output = run_adb([ "shell", "dumpsys", "gfxinfo", package_name, "framestats" ], device_serial) return output
- src/adb_mcp_server/server.py:1013-1013 (registration)The @mcp.tool() decorator registers the get_flutter_performance_overlay function as an MCP tool.@mcp.tool()