profiler_compare
Compare two groups of Unity Profiler captures marker by marker to report group means, run-to-run spread, and flag performance differences larger than that spread.
Instructions
Compare two groups of captures (e.g. 3 runs of branch A vs 3 of branch B) per marker. Reports group means, the run-to-run spread inside each group, and flags differences larger than that spread.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "profiler_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Captures of group A. | |
| b | Yes | Captures of group B. | |
| limit | No | ||
| folder | No | Capture folder. Default: UNITY_PROFILER_CAPTURES or <project>/ProfilerCaptures from the open editor. | |
| sortBy | No | ||
| contains | No | ||
| maxDepth | No | Only markers at or above this hierarchy depth (0 = PlayerLoop level). |