HolisticTraceAnalysis
A python library for analyzing PyTorch Profiler traces
What it is and what it does
Holistic Trace Analysis is a performance profiling tool built to analyze PyTorch Profiler traces from distributed training workloads. It ingests trace files collected via PyTorch's Kineto profiler and provides structured breakdowns of GPU activity—computation time, communication time, memory events, and idle periods—across all training ranks. The package runs as a Python library, typically within Jupyter notebooks, and exposes an API for querying temporal breakdowns, kernel statistics, communication-computation overlap, memory bandwidth utilization, and queue lengths.
The tool helps identify where training time is spent and why GPUs are idle, which is essential for optimizing large-scale distributed training. It includes trace comparison capabilities to visualize differences between runs, CUDA kernel pattern analysis to find frequently launched operations, and experimental GPU performance counter analysis. Dependencies include numpy, pandas, networkx for data processing and plotly for visualization.
Use it for:
- Identify GPU idle time causes and communication bottlenecks in multi-GPU or multi-node training runs.
- Compare performance profiles across different training configurations or hardware setups to validate optimization changes.
- Analyze kernel launch overhead and memory bandwidth utilization to guide kernel-level optimization efforts.
- Investigate temporal patterns of computation and communication overlap to improve distributed training efficiency.
- Diagnose performance regressions by comparing trace files from different training runs side-by-side.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Analyzes PyTorch Profiler traces to identify performance bottlenecks in distributed training workloads by breaking down GPU time, kernel execution, communication overlap, and idle periods.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a specific and important problem for anyone optimizing distributed PyTorch training. The MIT license imposes no restrictions. Install it if you profile distributed training workloads and need structured analysis of PyTorch Profiler traces.
Install
holistictraceanalysis on PyPI
pip
pip install holistictraceanalysisuv
uv add holistictraceanalysispoetry
poetry add holistictraceanalysisInstalling HolisticTraceAnalysis
Before you install
Low friction installation as a pure Python wheel. Active maintenance with recent commits; last release 442 days ago. Requires Python 3.8 or later and depends on common data science libraries (numpy, pandas, networkx, plotly) plus jupyterlab and pytest.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open and proprietary projects.
Quickstart
pip install HolisticTraceAnalysis
from holistictraceanalysis.trace_analysis import TraceAnalysis
analyzer = TraceAnalysis(trace_dir="/path/to/traces")
temporal_breakdown = analyzer.get_temporal_breakdown()
kernel_breakdown = analyzer.get_gpu_kernel_breakdown()
Requires PyTorch Profiler traces collected from a distributed training job; traces must reside in a single folder.
Verify before relying
- Whether the package works with PyTorch versions beyond those explicitly tested in CI
- Performance characteristics when analyzing very large trace files or high-rank distributed jobs
- Compatibility with GPU types beyond NVIDIA CUDA (e.g., AMD ROCm, Intel Arc)
- Exact import path structure for the TraceAnalysis API
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — jupyterlab, numpy, networkx, pandas, plotly, pydot, pytest |
| Maintenance | actively maintained — 442 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 155,871/month — #10,798 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: holistictraceanalysis-0.5.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
torch-tb-profilerIntegrates PyTorch profiling data with…
permissive · top 15,000 on PyPI
torchprofileCounts multiply-accumulate operations (MACs) in…
permissive · top 15,000 on PyPI
nvidia-resiliency-extAdds fault tolerance, checkpointing, and…
permissive · top 15,000 on PyPI
perfettoPerfetto is a Python binding for Perfetto's…
permissive · top 5,000 on PyPI
torchPyTorch provides GPU-accelerated tensor…
permissive · top 1,000 on PyPI
nvidia-cuda-nvrtcProvides NVIDIA CUDA NVRTC (NVIDIA Runtime…
unclear · top 1,000 on PyPI
nvidia-cuda-cuptiProvides CUDA profiling runtime libraries that…
unclear · top 1,000 on PyPI
nvidia-nvtxProvides a Python API for annotating events and…
unclear · top 1,000 on PyPI
nvidia-nvtx-cu12Provides a C-based API for annotating events,…
permissive · top 1,000 on PyPI
nvidia-cuda-cupti-cu11Provides NVIDIA CUDA profiling runtime…
unclear · top 5,000 on PyPI