pix_get_event_timing
Retrieve per-event GPU timing from PIX captures, with start and duration for each event. Rank events by duration to pinpoint expensive work, optionally filtering to individual draws and dispatches.
Instructions
Per-event GPU timing from PIX's own timeline, with start and duration for each.
top=N ranks the whole queue by GPU duration, which is the cheapest way to find the expensive work in a frame: pix_get_counter_hotspots replays the capture once per counter, and this reads a timeline that already exists. The ranking is dominated by marker scopes - Frame, then Scene, then PostProcessing - which is the shape of the frame; leaves_only=true ranks the individual draws and dispatches inside instead. Without top, events come in queue order from cursor_position.
Windows starts replay if needed. Xbox requires pix_start_analysis first, with an explicit device_address; its returned time_unit is nanoseconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| limit | No | ||
| queue_id | No | ||
| capture_id | Yes | ||
| leaves_only | No | ||
| wait_seconds | No | ||
| name_contains | No | ||
| cursor_position | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||