compare_snapshots
Compare two saved memory snapshots to see heap usage differences, classes that grew or shrank, new allocations, and freed memory, validating whether a fix reduced memory usage.
Instructions
Compare two previously saved memory snapshots to see what changed. Shows heap usage diff, which classes grew or shrank, new allocations, and freed memory. Perfect for validating that a fix actually reduced memory usage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"before": "<before>",
"after": "<after>"
},
"name": "compare_snapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | Name of the "after" snapshot | |
| before | Yes | Name of the "before" snapshot |