xprof
XProf Profiler Plugin
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Internet access to load Google Chart library; some visualizations may be unavailable offline or behind corporate firewalls.
- Python 3.10+ required.
- Medium install friction due to 13 runtime dependencies including protobuf, gcsfs, and google-cloud-storage.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-08-05 (9 days) · last repo commit 2026-08-14 · 570 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 473,640 downloads/mo, #6,462 on PyPI
Alternatives
Verify before relying
pip install xprof
xprof --logdir=profiler/demo --port=6006
# Then open browser to localhost:6006 to view profile data- 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.
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 on it.
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
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.
Requires Internet access to load Google Chart library; some visualizations may be unavailable offline or behind corporate firewalls. Python 3.10+ required.
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
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 packagesabsl-pygviz_apiprotobufsetuptoolssixwerkzeugetilscherootfsspecgcsfsgoogle-cloud-storageurllib3fire |
| 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 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
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
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ml model profiler”
- xprofXProf is a profiler for ML workloads that visualizes performance…
- tensorboard-plugin-profileProvides a TensorBoard plugin and standalone server for profiling and…
- torch-tb-profilerIntegrates PyTorch profiling data with TensorBoard, providing GPU…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also google-cloud-mldiagnostics · tensorboard-plugin-profile · torch-tb-profiler · tensorboard · austin-dist · pyinstrument · tb-nightly · line-profiler · tensorboard-data-server · tuna