get_memory_snapshot
Capture a memory allocation profile of a running Flutter app to inspect heap usage, top memory-consuming classes, and potential leak indicators.
Instructions
Get a memory allocation profile of the running Flutter app. Shows heap usage, top memory-consuming classes, and potential leak indicators.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_memory_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Number of top memory-consuming classes to show | |
| forceGC | No | Force garbage collection before taking the snapshot (gives a more accurate view of live objects) |