slice_descendants_breakdown
Drill into long tasks by expanding descendant slices under root slice IDs, aggregated by depth and name with bounded breakdown. Avoid manual recursive queries.
Instructions
Recursive child-slice expansion under known slice.id roots, aggregated as a bounded breakdown per (depth, name) group. Use to drill into a long task — after chrome_main_thread_hotspots or execute_sql returns a slice id — without hand-writing WITH RECURSIVE CTEs over slice.parent_id. Required: slice_ids. Optional bounds: min_dur_ms, max_depth, limit, include_args, max_string_len. The response echoes summary_scope, applied_filters, and missing_root_ids (missing root slice ids). Returned columns: root_id, depth, name, slice_count, inclusive_total_ms (do not sum across depths), self_ms (direct-child time subtracted, clamped at zero), max_ms, first_ts_ns (raw nanoseconds, not ms), example_slice_id (longest-duration descendant per group), and optionally example_args. incomplete_descendant_count counts dur<0 descendants excluded from duration aggregates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_args | No | Include an example args summary for one representative slice per group. | |
| limit | No | Optional max rows to return. Defaults to 100 and is capped at 5000. Accepts both numbers and numeric strings. | |
| max_depth | No | Optional maximum descendant depth. Defaults to 8. Must be > 0 when set; accepts both numbers and numeric strings. | |
| max_string_len | No | Optional per-string-cell character cap applied to returned rows only. Unset preserves full strings for precision; accepts both numbers and numeric strings. Must be > 0 when set. | |
| min_dur_ms | No | Optional descendant minimum duration in milliseconds. Defaults to 1 ms. Must be finite and non-negative; accepts both numbers and numeric strings. | |
| slice_ids | Yes | Root slice ids to expand. The root slices themselves are omitted from the summary; returned rows aggregate matching descendants under each root. Accepts numbers or numeric strings. |