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.7.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.7-cp312-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12macOS 12.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11macOS 12.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10macOS 12.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9

xprof-2.19.7-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.7.tar.gz.

File metadata

  • Download URL: xprof-2.19.7.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.7.tar.gz
Algorithm Hash digest
SHA256 075b14de7e744a32444e9aad62a7b43a51b41ee937858aa2a92942174c6a281b
MD5 8588981b29649f536168525aff278142
BLAKE2b-256 2299686d8c6c5754645562c29f057a5e6150e28bf670a86293fdf56f534c3524

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.7-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.7-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 2c62fc95a46417b33728b9d0e30cdbd562d1a6d77000f5dc9a1315045c9467a7
MD5 f44d5b4af30c11197c0dd2e44a837dff
BLAKE2b-256 9d6d591ba92c6de99733212ed5dd4463d16af742f67ea87c28293582d63ad344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4cbfd1c3f7435e284d80176fe502f7cc9f3b9e52920194e1f3301614b048dc1c
MD5 b1841d8622c5e3445739cf1c6c217461
BLAKE2b-256 5aeafc6f83692308329238d401bf2ae082ab1692d7c5c8f3ae8f3f81aa951719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp312-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 9d189914a21439cedbf6360ff47c097a2285a29ac76591c37ccbd979581a7f31
MD5 6293e9ced9706a28abc22be2b51977f6
BLAKE2b-256 976901ffa6939433f94fa53011995aee754f06c3bbb8395a145d35c605132cdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.7-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.7-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 beafdbb4bbb78213e4ce996628bb2177c01fb2421c2c10d3ac9d3a4f3d42c85c
MD5 220e64f6450d45beb8dc93ab11d650b9
BLAKE2b-256 6b6e4257a6333f48d539959dcee284ce32f75add0f35f0b980a9b22b8780b215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57ebba2a1f9ddc4f5c3ba6cce707678e2010bc7fe2ea02aa574ea4b5f8fd8c88
MD5 8c4c8173bd08507bbd6a8dd17aadce6b
BLAKE2b-256 35b375ce69f23b48be85cc21a8c8606974dd62d0a7c8c0ea7ceff341eed40e48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp311-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 128d6a1d33eaef750c3b42b73d73b7579b6317bcfea7ac0f0b99556dcaded9b0
MD5 4149c9ffa5bfae7586c05322766164b1
BLAKE2b-256 3491dc30f1082efed0cf17d9c53f95d9b5005e42c64a1cdfc77d73ed90f9171c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.7-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.7-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb5e28c035b938e40b917f9b34fe0da46afd2284012c17afccc86e5d37bdebf7
MD5 d218c41813c0bf8e21121d5b45fcc951
BLAKE2b-256 cb284fd5760445482756793b2e90e317aca86db8ae3d9a22ce25b127b8ab0262

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f7125866c467d97d111584dfc3bdddfeb3b8d60fe7e4ed020025d6946890a84
MD5 b2143eb5fd5a0fce0eda9ca84791cf35
BLAKE2b-256 6977762a61c8bb29d21fb39635d3fefa12577566722d950bd307444cfb6caf1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp310-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6eccc5adfce0417e4cc7ea314a72e6fb39a602ca1e669d88e99e124b56ce6131
MD5 f21c25492a769a39393d04e5652805ba
BLAKE2b-256 7c18ea8cb0db1d1a5a2bedbe7b4cbf56de92605c7f026338753ed172c7c19077

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.19.7-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.7-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 bbd352b78789ce0c7e324149f387738c97d33006dc052074bb4efca8d3cbcf97
MD5 5b42c34351ca61351800f0697ed611ab
BLAKE2b-256 fe2832663c7ef4758847a1452149891f25739c3e9307482f5ef75166f1b3dfad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a94b5f9e0bd9a8608afa8737df78b249d42335f442d61fa72809c8b5c888f9a2
MD5 eb3691a9a1477904b887ac28b012a28d
BLAKE2b-256 161c44cea764fd3bf6d76bfee48fb07dcefbc780bafd0a15218b39ccb3e7cf3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.19.7-cp39-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 3a4c6ccdfe6fb5e8f2d304dec35168a5ea1fd4376e92597616c626e85ed0bdb9
MD5 5922c61bad7730e7483c8d0a1ef7062c
BLAKE2b-256 eb8410742acd13dae4cb7158f39f594671566470d6cca8fb136e518fba198e28

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