xprof
XProf Profiler Plugin
What it is and what it does
XProf is an open-source profiler designed for modern ML workloads, providing a web-based interface to analyze and visualize model performance across multiple devices. It integrates with TensorBoard as a plugin or runs standalone, offering tools like an overview page showing step-time breakdowns, a trace viewer displaying operation-level execution timelines, memory profiling, and HLO graph visualization. The package depends on 13 runtime libraries including protobuf, gcsfs, google-cloud-storage, and werkzeug, indicating support for both local and cloud-based profile storage and serving.
The profiler is actively maintained (latest release 9 days old, first released May 2025) and requires Python 3.10 or later. It has no known security vulnerabilities. Installation is straightforward via pip, though the dependency footprint is moderate. The tool is intended for developers, researchers, and educators working with JAX, PyTorch, TensorFlow, and XLA—frameworks commonly used in ML research and production.
Use it for:
- Analyze step-time performance and identify bottlenecks in multi-device ML training runs.
- Visualize operation-level execution timelines to understand which ops run on host vs. device and inter-device communication.
- Monitor memory usage patterns during model training to detect memory leaks or inefficient allocations.
- Debug distributed training by viewing aggregated performance metrics across all devices and hosts.
- Integrate profiling into TensorBoard workflows for unified experiment tracking and analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
XProf is a profiler for ML workloads that visualizes performance across multiple devices, showing execution timelines, memory usage, and operation-level details through a web interface.
Yes, if you train ML models on multiple devices or use JAX, PyTorch, TensorFlow, or XLA. The package is actively maintained, has no security issues, and provides essential multi-device profiling tools. Medium install friction is acceptable for the capability gained. Not necessary for single-device or non-ML workloads.
Install
xprof on PyPI
pip
pip install xprofuv
uv add xprofpoetry
poetry add xprofInstalling xprof
Before you install
Medium install friction due to 13 runtime dependencies including protobuf, gcsfs, and google-cloud-storage. Package is actively maintained with recent releases (9 days old) and has no known vulnerabilities. Python 3.10+ required; users on Python 3.12+ may need to downgrade setuptools below version 70.
License in practice
Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install xprof
xprof --logdir=profiler/demo --port=6006
# Then open browser to localhost:6006 to view profile data
Requires Internet access to load Google Chart library; some visualizations may be unavailable offline or behind corporate firewalls. Python 3.10+ required.
Verify before relying
- Whether the 13 runtime dependencies (including gcsfs and google-cloud-storage) are all required for basic profiling or only for specific cloud storage features.
- Performance overhead of the profiler itself on large-scale distributed training runs.
- Compatibility with frameworks beyond JAX, PyTorch, TensorFlow, and XLA mentioned in keywords.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 13 — absl-py, gviz_api, protobuf, setuptools, six, werkzeug, etils, cheroot, fsspec, gcsfs, google-cloud-storage, urllib3, fire |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 473,640/month — #6,462 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: xprof-2.23.1-py3-none-macosx_11_0_arm64.whl; xprof-2.23.1-py3-none-manylinux_2_27_x86_64.whl; xprof-2.23.1-py3-none-manylinux_2_35_aarch64.whl; xprof-2.23.1-py3-none-win_amd64.whl
Keywords: jax, pytorch, xla, tensorflow, tensorboard, xprof, profile, plugin
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
google-cloud-mldiagnosticsCollects metrics, configs, and performance…
permissive · top 15,000 on PyPI
tensorboard-plugin-profileProvides a TensorBoard plugin and standalone…
permissive · top 5,000 on PyPI
torch-tb-profilerIntegrates PyTorch profiling data with…
permissive · top 15,000 on PyPI
tensorboardTensorBoard is a web-based visualization suite…
permissive · top 1,000 on PyPI
austin-distAustin is a frame stack sampler for CPython…
copyleft · top 5,000 on PyPI
pyinstrumentPyinstrument is a statistical call-stack…
permissive · top 5,000 on PyPI
tb-nightlyTensorBoard is a web-based visualization suite…
permissive · top 15,000 on PyPI
line-profilerline_profiler measures execution time on a…
permissive · top 5,000 on PyPI
tensorboard-data-serverProvides fast data loading and serving for…
permissive · top 5,000 on PyPI
tunatuna visualizes Python performance profiles in…
copyleft · top 15,000 on PyPI