TraceLens release notes#
2026-07-22
3 min read time
This topic summarizes the features available in each TraceLens release. For the hardware and software versions validated for a release, see the Compatibility matrix.
TraceLens 0.1.0#
The initial release establishes TraceLens as an end-to-end toolkit for automated GPU trace analysis, available as command-line tools and a Python SDK.
Release highlights#
TraceLens 0.1.0 introduces report generators for PyTorch, JAX, and rocprofv3 traces; GPU-timeline analysis and roofline modeling; multi-GPU collective analysis and trace comparison tools; and a Python SDK for programmatic access to all analysis capabilities.
Report generation#
This release includes the following report generators:
PyTorch profiler reports:
TraceLens_generate_perf_report_pytorchbuilds a multi-sheet Excel report from atorch.profilerChrome trace, including a GPU-timeline breakdown, operator-category and operator summaries, a unique-argument table, roofline metrics, and an optional short-kernel study. Compressed traces (.zip,.gz) are supported.PyTorch inference reports:
TraceLens_generate_perf_report_pytorch_inferenceadds analysis for LLM-serving traces (vLLM/SGLang). It merges HIP/CUDA-graph capture traces into graph-replay traces (--capture_folder) to recover call-stack and shape information lost in graph mode, and uses per-step request annotations (prefill/decode counts and token statistics) to drive inference-specific roofline models for paged attention and fused MoE.JAX reports:
TraceLens_generate_perf_report_jaxbuilds reports from JAX XPlane protobuf traces, with optional kernel-metadata keyword filtering.rocprofv3 JSON reports:
TraceLens_generate_perf_report_rocprofbuilds reports from rocprofv3*_results.jsontraces, with kernel summaries, automatic categorization (GEMM, attention, elementwise, and others), short-kernel analysis, and optional grid/block detail.rocprofv3 pftrace reports: For Perfetto-style traces produced with
rocprofv3 --output-format pftrace:TraceLens_generate_perf_report_pftrace_hip_activity:per-GPU category summary plus kernel/HIP/XLA summaries (NSYS-style), with optional Markdown.TraceLens_generate_perf_report_pftrace_hip_api:HIP API ↔ kernel correlation with the latency breakdownT = A + Q + K.TraceLens_generate_perf_report_pftrace_memory_copy:memory-copy counts percopy_byteswith direction (h2d/d2h/d2d) and the GPUs involved.
Analysis features#
This release includes the following analysis features:
Hierarchical GPU-timeline breakdown: Splits GPU time into computation, communication, memory copy, and idle time, with optional micro-idle classification.
Operator categorization: Groups CPU operations that launch kernels into categories for a portable, reproducible view.
Unique-argument analysis: Groups operations by name plus input shapes, dtypes, strides, and concrete inputs to isolate problematic input patterns.
Roofline modeling: Computes arithmetic intensity (FLOPs/byte) and classifies operations as compute- or memory-bound relative to a target GPU’s roofline knee point. Optional Origami-based simulated GEMM/SDPA timings are available when a GPU architecture specification is provided.
Activation-recompute detection and kernel-overlap sheets for deeper PyTorch analysis.
Multi-GPU and comparison#
This release includes the following multi-GPU and comparison tools:
Collective communication analysis:
TraceLens_generate_multi_rank_collective_report_pytorchreports time spent in collectives across ranks, including aggregation metrics, intra- and inter-node labeling, and an optional all-to-all-v heatmap.Trace comparison:
TraceLens_compare_perf_reports_pytorchdiffs two generated reports at the CPU-dispatch level to quantify the impact of a change across hardware or software versions.Trace diff:
TraceDiffprovides morphological comparison of two trace trees to pinpoint structural divergences (also available inline in the PyTorch report using--comparison_json_path).
SDK modules#
This release ships the following Python SDK modules:
Trace2Tree: Build and navigate the hierarchical event tree.
TreePerf: GPU-timeline breakdown, per-op performance, and roofline metrics through the SDK.
PerfModel: Compute and roofline performance models.
NcclAnalyser: Multi-rank collective latency/bandwidth/skew analysis.
TraceDiff: Tree-based trace comparison.
EventReplay: Extract and replay isolated operations.
TraceFusion: Merge multi-rank traces for Perfetto visualization.
TraceUtils: Trace utilities, including inference-trace splitting (
TraceLens_split_inference_trace).