tensorboard-plugin-profile
XProf Profiler Plugin
What it is and what it does
tensorboard-plugin-profile is a TensorBoard plugin that integrates XProf, an open profiler for modern ML workloads. It runs as a web-based UI via TensorBoard or standalone to visualize model execution across multiple devices. The plugin displays performance summaries, step-time breakdowns, execution timelines showing which device ran each operation, memory usage patterns, and HLO graph structures. It depends on xprof as its core runtime dependency.
You can launch it standalone with xprof command-line tools pointing to a directory of profile data, or integrate it into TensorBoard for a unified debugging environment. The server supports distributed profiling via gRPC workers and offers command-line flags to customize ports, hide UI elements, and link source code. Internet access is required for chart rendering; offline or firewalled environments may see incomplete visualizations.
Use it for:
- Identify performance bottlenecks in multi-device training by examining per-operation execution timelines and device utilization.
- Monitor memory consumption patterns during model training to detect memory leaks or inefficient allocations.
- Visualize communication overhead between distributed devices to optimize collective operations.
- Debug step-time variability by comparing individual step profiles against the aggregated performance summary.
- Analyze HLO graph structure to understand compiler optimizations and identify suboptimal computation patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a TensorBoard plugin and standalone server for profiling and visualizing ML model performance across multiple devices, showing execution timelines, memory usage, and computational graphs.
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and is in the top 5000 on PyPI. It solves a real need for ML practitioners debugging performance. The Apache 2.0 license is permissive. The main gotcha is the internet requirement for full UI rendering; if you profile in offline environments, verify that limitation first.
Install
tensorboard-plugin-profile on PyPI
pip
pip install tensorboard-plugin-profileuv
uv add tensorboard-plugin-profilepoetry
poetry add tensorboard-plugin-profileInstalling tensorboard-plugin-profile
Before you install
Low friction installation via pip with a single runtime dependency. Actively maintained with a recent release and no known vulnerabilities. Requires Python 3.10 or later; Python 3.12+ users may need to downgrade setuptools if pkg_resources import fails.
License in practice
Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install tensorboard-plugin-profile
# Standalone usage:
xprof --logdir=profiler/demo --port=6006
# Or with TensorBoard:
tensorboard --logdir=profiler/demo
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 package works with all major ML frameworks or if framework-specific setup is needed.
- Performance impact of running the profiler on large-scale distributed training jobs.
- Whether gRPC distributed processing mode is production-ready or experimental.
- Actual monthly download volume and user base size.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — xprof |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 871,596/month — #4,845 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorboard_plugin_profile-2.23.1-py3-none-any.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
torch-tb-profilerIntegrates PyTorch profiling data with…
permissive · top 15,000 on PyPI
xprofXProf is a profiler for ML workloads that…
permissive · top 15,000 on PyPI
google-cloud-mldiagnosticsCollects metrics, configs, and performance…
permissive · top 15,000 on PyPI
tensorboardTensorBoard is a web-based visualization suite…
permissive · top 1,000 on PyPI
tensorboard-data-serverProvides fast data loading and serving for…
permissive · top 5,000 on PyPI
tb-nightlyTensorBoard is a web-based visualization suite…
permissive · top 15,000 on PyPI
tensorboard-plugin-witAdds the What-If Tool, an interactive visual…
permissive · top 5,000 on PyPI
tunatuna visualizes Python performance profiles in…
copyleft · top 15,000 on PyPI
tbparseParses TensorBoard event log files and loads…
permissive · top 15,000 on PyPI
visualdlVisualDL is a visualization tool for deep…
permissive · top 15,000 on PyPI