pix_get_thread_timeline
Display a thread's named PIX scopes with span and duration, separating execution time from waiting time to pinpoint slowdowns.
Instructions
One thread's named PIX scopes: what it was doing, and for how long.
This is the lane PIX draws for a thread. Each row is one PIXBeginEvent/End pair with its own name, span and nesting depth; without stack_level the whole tree comes back flattened, deepest scopes included. duration is wall clock and execution_time is the part of it the thread was actually on a core for - the gap between them is time spent descheduled, which is the difference between slow code and a thread that was waiting.
Empty means the process never called PIXBeginEvent. Check pix_get_timing_summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| end_time | No | ||
| thread_id | Yes | ||
| capture_id | Yes | ||
| start_time | No | ||
| stack_level | No | ||
| cursor_position | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||