oc_performance_insights
Capture a Chrome performance trace and return structured insights including LCP breakdown, document latency, render-blocking resources, CLS culprits, long tasks, and third-party impact.
Instructions
Capture a CDP performance trace and return named insights (LCPBreakdown, DocumentLatency, RenderBlocking, CLSCulprits, LongTasks, ThirdParties). Returns a trace_id usable by oc_performance_analyze. Core-tier; trace handles are session-scoped and evicted on session close. Disable via OPENCHROME_PERF_INSIGHTS=0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | REQUIRED Tab ID to trace. | |
| url | No | If set, navigate the tab to this URL before tracing. | |
| reload | No | Reload the page after starting the trace (cold-load capture). | |
| cpuThrottling | No | CPU throttling rate. 1 = none, 4 = mid-tier mobile. | |
| network | No | Network throttling profile. | |
| autoStop | No | When to stop tracing. "load" = page load event, "idle" = network idle, { ms: N } = fixed timeout. Default 3000ms. |