What problem does it solve?
Whole-trace profiler summaries are too coarse to explain where time goes inside an LLM forward pass. This Skill parses Chrome-trace JSON files from torch.profiler, detects layer boundaries via anchor kernels, and produces per-layer timing tables, kernel breakdowns, and Perfetto navigation ranges.
Core Features & Use Cases
- Per-Layer Timeline Analysis: Group GPU kernels into forward passes and layers, classify layers by type (C4_LIGHT, C128_HEAVY, HASH, FULL_ATTN), and compare cold-start versus steady-state passes.
- Kernel-Level Breakdown: Dump every kernel in a specific layer with category, duration, and input dims, export as text, compute-flow tables, or JSON, and diff two layers side-by-side.
- Perfetto Time Mapping: Convert trace timestamps into Perfetto-relative time ranges for any forward pass or layer so you can jump directly to the region of interest.
- Use Case: You profiled a DeepSeek-V4 decode run on TP=8 and need to know whether C128_HEAVY layers dominate. Run the timeline analyzer to find the steady-state pass, then break down a representative layer to see MLA, MoE, GEMM, and NCCL shares.
Quick Start
Analyze my torch profiler trace at /path/to/TP-0.trace.json.gz with the model config at /path/to/config.json and show me the per-layer timing breakdown for the steady-state forward pass.