profiler-stream
Collects continuous performance data from Unity applications, generating JSONL summaries with aggregated statistics and automatic screenshots on threshold violations.
Instructions
Multi-frame continuous Profiler sampling (snapshot + GC + hotpath + call counts). Writes JSONL summary file and outputs aggregated statistics (with P95/P99 percentiles) on completion. Supports fixed-frame and continuous modes. Auto-loads threshold fences; takes screenshot on violation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frames | No | Number of frames to sample. 0 or negative = continuous mode (returns immediately, samples in background until stop signal). Default: 0 | 0 |
| frameInterval | No | Frame interval (Unity frames to skip between samples). Default: 2 | 2 |
| gcTopN | No | Top N GC allocations per frame. Default: 20 | 20 |
| hotpathTopN | No | Top N hotpath functions per frame. Default: 20 | 20 |
| hierarchyMaxDepth | No | Maximum call hierarchy depth. Default: 8 | 8 |