track_allocations
Track JavaScript object allocations over a specified duration, capturing call stacks and raw heap snapshots with configurable GC, byte limits, and export options to identify memory issues.
Instructions
跟踪对象分配
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 页面 URL(可选) | |
| duration | No | 跟踪时长(毫秒),默认 5000 | |
| topN | No | Top N(调用栈)数量,默认 20 | |
| collectGarbage | No | 采集前是否触发 GC,默认 false | |
| maxSnapshotBytes | No | raw snapshot 采集最大字节数,默认 200MB | |
| maxParseBytes | No | JSON.parse 解析最大字节数,默认 50MB | |
| export | No | raw profile 导出选项 |