Skip to main content

XProf Profiler Plugin

Reason this release was yanked:

Trace Viewer Functionality broken.

Project description

XProf (+ Tensorboard Profiler Plugin)

XProf includes a suite of tools for JAX, TensorFlow, and PyTorch/XLA. These tools help you understand, debug and optimize programs to run on CPUs, GPUs and TPUs.

XProf offers a number of tools to analyse and visualize the performance of your model across multiple devices. Some of the tools include:

  • Overview: A high-level overview of the performance of your model. This is an aggregated overview for your host and all devices. It includes:
    • Performance summary and breakdown of step times.
    • A graph of individual step times.
    • A table of the top 10 most expensive operations.
  • Trace Viewer: Displays a timeline of the execution of your model that shows:
    • The duration of each op.
    • Which part of the system (host or device) executed an op.
    • The communication between devices.
  • Memory Profile Viewer: Monitors the memory usage of your model.
  • Graph Viewer: A visualization of the graph structure of HLOs of your model.

Demo

First time user? Come and check out this Colab Demo.

Prerequisites

  • tensorboard-plugin-profile >= 2.19.0
  • (optional) TensorBoard >= 2.19.0

Note: XProf requires access to the Internet to load the Google Chart library. Some charts and tables may be missing if you run TensorBoard entirely offline on your local machine, behind a corporate firewall, or in a datacenter.

To profile on a single GPU system, the following NVIDIA software must be installed on your system:

  1. NVIDIA GPU drivers and CUDA Toolkit:

    • CUDA 12.5 requires 525.60.13 and higher.
  2. Ensure that CUPTI 10.1 exists on the path.

    $ /sbin/ldconfig -N -v $(sed 's/:/ /g' <<< $LD_LIBRARY_PATH) | grep libcupti
    

    If you don't see libcupti.so.12.5 on the path, prepend its installation directory to the $LD_LIBRARY_PATH environmental variable:

    $ export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
    

    Run the ldconfig command above again to verify that the CUPTI 12.5 library is found.

    If this doesn't work, try:

    $ sudo apt-get install libcupti-dev
    

To profile a system with multiple GPUs, see this guide for details.

To profile multi-worker GPU configurations, profile individual workers independently.

To profile cloud TPUs, you must have access to Google Cloud TPUs.

Quick Start

In order to get the latest version of the profiler plugin, you can install the nightly package.

To install the nightly version of profiler:

$ pip uninstall xprof
$ pip install xprof-nightly

Without TensorBoard:

$ xprof --logdir=profiler/demo --port=6006

With TensorBoard:

$ tensorboard --logdir=profiler/demo

If you are behind a corporate firewall, you may need to include the --bind_all tensorboard flag.

Go to localhost:6006/#profile of your browser, you should now see the demo overview page show up. Congratulations! You're now ready to capture a profile.

Next Steps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xprof-2.20.3.tar.gz (6.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xprof-2.20.3-py3-none-any.whl (6.1 MB view details)

Uploaded Python 3

xprof-2.20.3-cp312-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.12Windows x86-64

xprof-2.20.3-cp312-none-manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.12

xprof-2.20.3-cp312-none-macosx_12_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

xprof-2.20.3-cp311-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.11Windows x86-64

xprof-2.20.3-cp311-none-manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.11

xprof-2.20.3-cp311-none-macosx_12_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

xprof-2.20.3-cp310-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.10Windows x86-64

xprof-2.20.3-cp310-none-macosx_12_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

xprof-2.20.3-cp39-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.9Windows x86-64

xprof-2.20.3-cp39-none-manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.9

File details

Details for the file xprof-2.20.3.tar.gz.

File metadata

  • Download URL: xprof-2.20.3.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.3.tar.gz
Algorithm Hash digest
SHA256 e62b8a2df02873d0062b7be6b7260fa3d0c73896c8d062b98b46f3de64ddd0d6
MD5 ecaf713f26bb676d59b47cea885c2603
BLAKE2b-256 83dc81a82fd6876840cc9a59998a39f7e5150e64d914717c7bf25182772cdc6d

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-py3-none-any.whl.

File metadata

  • Download URL: xprof-2.20.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73ef22e104b761abf6264ff5d062f39321f2038102b679d2ee967312ad03a73d
MD5 a9deed8eebe635587cb6cb494629cb8b
BLAKE2b-256 d669b067f898af2810d3dee56d5763af35bdfab3e06f5e796a95c42eefb46583

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp312-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.20.3-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.3-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 f06267b484b5e8f76e534e86ec558516fbb77935f5f3d3438477b3ebff96deb8
MD5 564b5dca5ef61cdf511104c8137b9863
BLAKE2b-256 0ff7fe6b5f824295a39d8c9ab323c314c62ed6f9c5c2634c7d24d0c52a0d848e

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp312-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.20.3-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99c0a87f20ef836f033173e72f65e19fcbd06510a58b7b4bb4ca049e1446d65b
MD5 cc1575f58151ae92e42b45ccf752abd0
BLAKE2b-256 161e009e7351b5e42e0d65b06872ef2e3d03be688ecb0cd9382c0da981d2393e

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp312-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.20.3-cp312-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a2e72dd344271530bc99c91bfb83ad136bfb12df417845ed4bc493c14f828d4a
MD5 a03d232eead7630b11c3443c98ea5551
BLAKE2b-256 9d772c3db63649e0a508cfbc33af75300340885e3642f27d966e763f1c1c0d44

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp311-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.20.3-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 9bd8938aef2890ef0dc81f5fe9aa1876a9b7caf2d3b76e8289b6c09b68eacfbf
MD5 7927dadf049c435c403cc41ee8e80e72
BLAKE2b-256 dba0129b3fe0b2284afb09504bd386bab33999a769e668ef8fd7a1b657345b6f

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp311-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.20.3-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7744482d224d502ce180c47728e871ee4134e98ce5c39a488428848aa7831f88
MD5 fb04056a3a8be55411eaa8f71ba1e107
BLAKE2b-256 cfb591f1c065f15e64e75d619087afce4614800947f3a6384297c35d339e3fee

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp311-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.20.3-cp311-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 70f9389930afc8240b06418b29853820b849591b245f33d09e3e932c7fffeef5
MD5 1f824b07449494fecd2bf118222677c1
BLAKE2b-256 beb4388dfd5d3ffee97e4f7a052dd9139c736551e00e3167fa0a351d845b8186

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp310-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.20.3-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 37ccc469436a1a89116c031d742fd38e85f910e57cdb4c1f8a84005462dbcdf2
MD5 77fe3095aa98a116a69c55195032d967
BLAKE2b-256 931e1e9c42ea02c23eee921c181cca0009fdb0fc9e19f2346b397246ba2e856c

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp310-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.20.3-cp310-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f650c8f3b68fb0328a4c2a0307b45cd274e9d6d8f930a07a7455b8b2008d86f8
MD5 256dff48ab935e70d229452d9390a505
BLAKE2b-256 210243278a53b5ee53d6f174fd996c359407d996d2daf4723485a7bee79a2839

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp39-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.20.3-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e529c93275894cdecdb81547b08ca9db41793b803fd32464a7cb043b1dff3a2
MD5 075b61b6b61b88ebc50e8b6c73208a10
BLAKE2b-256 bf72b66cd94c51fb495decaf9e853f01043e06e0fa1871b21a97788b94511f5e

See more details on using hashes here.

File details

Details for the file xprof-2.20.3-cp39-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.20.3-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3cc5a26163f285385de58ce73533397b8dc8a62a8de2474570252e1dfc518bcf
MD5 b13a98f3295a9813bc71e6f7d7e3e43d
BLAKE2b-256 094cda1d9b3cf8c3ab37787b03109643dda0533d73dfce4a1df68f8f9972980a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page