Profile Drill: per-kernel time analysis from xplane traces
Direct-read xplane analysis for kernel-level ground truth. Sibling to performance-analysis (which goes via TraceLens). Use this skill when:
- Routine TGS/MFU reporting is not enough — you need per-kernel times.
- Cross-variant comparison (baseline vs experimental
moe.py/ sharding change / XLA flag toggle) where all variants must be measured with the same yardstick. - TraceLens numbers look suspicious (systematic ~1.5×–2× inflation on 1-node/proc profiles — see Pitfalls).
- Building a step-time composition table: what fraction of a step is each kernel family, how much idle gap, how much stream overlap?
- Identifying main-stream-blocking kernels (dominant throughput killers on MoE and ragged-collective paths).