mat_histogram
Generate a class histogram from a heap dump report, sorted by shallow size, retained size, or object count. Limit results with Top-N and reuse prior OQL/RS result sets for targeted analysis.
Instructions
Class histogram sorted by shallow/retained/count. Top-N by default; pass top to override. objectSet reuses a prior OQL/RS result. / 按 shallow/retained/count 排序的类直方图,默认 Top-20。objectSet 可复用先前 OQL/RS 结果。
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": {
"report_id": "<report_id>"
},
"name": "mat_histogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| sort | No | retained | |
| objectSet | No | ||
| report_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |