Skip to main content

XProf Profiler Plugin

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 tensorboard-plugin-profile
$ pip install tbp-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.19.9.tar.gz (3.9 kB view details)

Uploaded Source

Built Distributions

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

xprof-2.19.9-cp312-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.12Windows x86-64

xprof-2.19.9-cp312-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.12

xprof-2.19.9-cp312-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

xprof-2.19.9-cp311-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.11Windows x86-64

xprof-2.19.9-cp311-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.11

xprof-2.19.9-cp311-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

xprof-2.19.9-cp310-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.10Windows x86-64

xprof-2.19.9-cp310-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.10

xprof-2.19.9-cp310-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

xprof-2.19.9-cp39-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.9Windows x86-64

xprof-2.19.9-cp39-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.9

xprof-2.19.9-cp39-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: xprof-2.19.9.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.9.tar.gz
Algorithm Hash digest
SHA256 9fa247c224feb12281b45733ec3b90dc6fb1a42d86bbe5b8de37aad55072b196
MD5 32b0e7f5abd5f3b7406ca2aee9cae5d3
BLAKE2b-256 6e94475aeaa52eaec6c2379b4cfdd5fd072a2a5bb1218305d9573c61575e9704

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.9-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.9-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 2a259e6b32f9f4d9d95ba9e140a0f4a86aac8ef0a0b516fa819a8b22268f0d59
MD5 98a273dc6a31d40e5551eb3471be5aff
BLAKE2b-256 bca34bd9e5e34082b05227b4ed728efbdf4e04c4c88346fcf1fa80dd0a645a64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.9-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 085edc8b812a5eb193a196d5691ec0cdfefd81158d01d9461a0ca4555870dc57
MD5 2ed404535ca37cf3985fbb877f981185
BLAKE2b-256 ae20b4e246bae0e4b3fafbf880160efa8bd438641f62f203c8252a2342bde441

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.9-cp312-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f4ffce5be330b43ccd056b6a582c858a5af90d405e7741ff96108aa89d08f9bd
MD5 63fc70985047d77dbc765771b9337e3f
BLAKE2b-256 0c274d632210c4f92738a4e8a52262ab142796dd8336d791511ac0e3b1a052b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.9-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.9-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 19416cc5b3bf22ce327f19f8e00bd67660bdd16b39537fca600e210fa6bbd2b8
MD5 22d094ea3329de09d2e619baf2dd4773
BLAKE2b-256 b975684be6ad5d327c1f337e53e86bb11c9170948b82e0372e1756fc6caae149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.9-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e02dc020d7d00b20939cdbdb007f7494cb50128f2b4ce4b051908542e5246e76
MD5 a60bff6e8feada95f39f9a9c0827ded6
BLAKE2b-256 f9b78d6b52ae8157a7ff74b3c8fd177724279caf6c61b932cec82af06214183c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.9-cp311-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 fc0a21c26609619edcddc813b0dcf6197a78d5456e1677572d120ffa42fb07c4
MD5 8c21a328a728c7ef9d39ddf1c8b3eba3
BLAKE2b-256 4932abbd41aca6de976b21a04fedd5e941cd8a39403e87163769eac122adcb2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.9-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.9-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b4668cc6286ed51cbbe7321048f25925f4c689b65864159d6787170a6b3d0eca
MD5 b645a70b631aae6eac88ad0f2077abc2
BLAKE2b-256 4c3bce080d795d1014042aed670d837021cf5870a6a0b0c58fd5384c9e019053

See more details on using hashes here.

File details

Details for the file xprof-2.19.9-cp310-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.19.9-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a18067cc19dddc42dca583cecd923fed4353176d991babcfde1ec663b27a152c
MD5 b25504556d8e7f856a585dce59e22071
BLAKE2b-256 e0b3bb95cecf7c4cc4dd94d04c947834f36946b4db3a3c770e9dbd51a50e7236

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.9-cp310-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 b6dafe662d100c6b8818c7f780d1a1a74ec0c36d22b84bea5edc5e120607c38a
MD5 e658c40a9a63627150d5dbf3c112da03
BLAKE2b-256 af17fb738432fe43d95df9aeee9fef12bad370a9fd2ed2269933114d087dcdf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.9-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.9-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 440b7d478162309048c8e2f658a8f1f4689f1aadca3766cf17c5c3274d38a608
MD5 7ebf93ce11a81760420b7b3357149c25
BLAKE2b-256 4a9e6ec9b5529576b2455cfa0aecdb18adfd54a0188e655eaefd9fd1fff161ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.9-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 425012c28e79457956583d285975b4407fe02303d182d60bf332bcbc793a175e
MD5 f407f3d35d87c2b59d369fe28f66c7d9
BLAKE2b-256 760e68d35242045d543eca556af78a7add13e4f47d071e63626f98d33902e71a

See more details on using hashes here.

File details

Details for the file xprof-2.19.9-cp39-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.19.9-cp39-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 7e7810739bc09b8918e500e9e0a639abd66b7d245f0d0b5ce7c7c197fcaaf8de
MD5 3c48fb3975ac5eb1834bb9acef9d805b
BLAKE2b-256 ef880a2d5e6af9a2f5c99ff1fce9f62c4723f628c9f2cfd12bc95cdd1033a0b9

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