Skip to main content

Python NVTX - Python code annotation library

Project description

nvtx Python package

Installation

Install using conda:

conda install -c conda-forge nvtx

...or using pip:

python -m pip install nvtx

Quick start

  1. Annotate the parts of your Python code you wish to profile/analyze:

    # demo.py
    
    import time
    import nvtx
    
    @nvtx.annotate(color="blue")
    def my_function():
        for i in range(5):
            with nvtx.annotate("my_loop", color="red"):
                time.sleep(i)
    
    my_function()
    
  2. Use NVIDIA Nsight Systems to collect profile data:

    nsys profile -t nvtx python demo.py
    
  3. Visualize the results using the Nsight systems GUI:

    demo

Documentation

See here for detailed docs.

Release Notes

0.2.13

  • Fix tracing with tools that do not implement nvtxDomainIsEnabled.
  • Fix decorator ranges not ending when an exception is thrown.
  • Fix automatic function name annotation for decorator ranges.

0.2.12

  • Expose API via domain object for better performance.
  • No-OP when domain is disabled.
  • Improved documentation.

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

nvtx-0.2.13.tar.gz (112.1 kB view details)

Uploaded Source

Built Distributions

nvtx-0.2.13-cp313-cp313-win_amd64.whl (97.3 kB view details)

Uploaded CPython 3.13Windows x86-64

nvtx-0.2.13-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nvtx-0.2.13-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (519.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

nvtx-0.2.13-cp312-cp312-win_amd64.whl (99.1 kB view details)

Uploaded CPython 3.12Windows x86-64

nvtx-0.2.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (545.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nvtx-0.2.13-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (539.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

nvtx-0.2.13-cp311-cp311-win_amd64.whl (99.1 kB view details)

Uploaded CPython 3.11Windows x86-64

nvtx-0.2.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (522.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nvtx-0.2.13-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (522.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

nvtx-0.2.13-cp310-cp310-win_amd64.whl (99.1 kB view details)

Uploaded CPython 3.10Windows x86-64

nvtx-0.2.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (474.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

nvtx-0.2.13-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (470.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

nvtx-0.2.13-cp39-cp39-win_amd64.whl (100.2 kB view details)

Uploaded CPython 3.9Windows x86-64

nvtx-0.2.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

nvtx-0.2.13-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (476.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

nvtx-0.2.13-cp38-cp38-win_amd64.whl (100.3 kB view details)

Uploaded CPython 3.8Windows x86-64

nvtx-0.2.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (481.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

nvtx-0.2.13-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (478.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

File details

Details for the file nvtx-0.2.13.tar.gz.

File metadata

  • Download URL: nvtx-0.2.13.tar.gz
  • Upload date:
  • Size: 112.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13.tar.gz
Algorithm Hash digest
SHA256 9db7ba135168e14e1f038866100bf8ed42d3e00b404e9bc7b6280ee3af828b92
MD5 84e54de624eb56633f08cbf703381dc5
BLAKE2b-256 9702b3fd3da4ba51764cfc0e4d2b22d5a61511fa79d825344d4704f8429c0bd6

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: nvtx-0.2.13-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 97.3 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f0524bb71443d5a1f19a6409a9a81405fc437e53c5edfc4c44b6f4504ccf46e3
MD5 29cf42714e975ca012d63245a0d21d5a
BLAKE2b-256 21d70ca146afd875f1e02636323840960071f768b5d8ba3e7d37f2ac9192bfd9

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edd7b729ed0211350258a21dd13422f59bc521de2b2fd21feb6c177af492f4e1
MD5 8b6e1d5213f1c21b37a46f10288af2c7
BLAKE2b-256 144b21e975997def8a387543ba2bbe227551ad466781c39fc67f37f53555f37e

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a1561d2111c698b1b1075899ff9c3fa7ba83603fc27c2e8ef567de6bbbe85ce1
MD5 1c710ac74810b75132b4a01c097aba19
BLAKE2b-256 417398c0669d5f9387a36d56b0e62ea3919124dd8dd7582d896ed1cae2998f57

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: nvtx-0.2.13-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 99.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0722d743e0e41e1fb866ebe6446e0cd0d268ca8671313f8da4f8c969956b74d3
MD5 1276517791aa3b3d02eacd6bd4d8f08f
BLAKE2b-256 2ab655bc5916386db70b93cbf543b1e880ead786d9ff0cdcfa262f5a2af46c74

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 453d838dd1424a04303281ee57a73e2b8dca0e03039bc609a945861b8fe7d7d9
MD5 540d9b9ca441a1521df5fcf7a8e51d34
BLAKE2b-256 12ab762da984e7671f7c34ae87e5b70523c3eeb4563759268bfaea07c97f32a6

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3435cbbffa132f6aaba3abdb01e71a1b961a20858b4cb791883895a25b9305d6
MD5 a97e872926d8f1fa58ad593cc8175fa4
BLAKE2b-256 c573ad21e09dc2534f1e9723bbe5871fa5f03361ac51ca4d411fea6f765b5b6a

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: nvtx-0.2.13-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 99.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 be6d53143cb2bd44e04aecdb7f3b34b48ded96f3673ae41362239d9f54bcfe27
MD5 7f48ad04152b8febdfdca54823a0e393
BLAKE2b-256 a98c89d1f499a4880e30e0b5bdf429cbd1d8c612d09c49c13016384ce9cd156d

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5640ca4b8be2c19a8fc4ca8403d3c2598165ea27541940b4897138a7b0a717fe
MD5 274432d8c16d7a632ee99cf64284a1b5
BLAKE2b-256 1d55e1e43201959dd854005c72b8a13ec86b775c349cdcb1d23423d841bbad58

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ad794a0c046ef268b2fb3b6812a35bb3bce5cd19207d164689943f0031ac45f
MD5 c821265596cc42b9a3dd98151daffc0b
BLAKE2b-256 2202f74e26cedbdb136440d1234a646cedfddf9a43d19586e1ee466d6275e6b6

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: nvtx-0.2.13-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 99.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4f26d04b5ea5b96096941cb9a7115a73454e9e9d5c247bfcd34ec584559cf9dd
MD5 2a649f5dff5f0f23d9851e3a28942977
BLAKE2b-256 2bbee00ab0d21f4fb46ad66b0eae89d9e9f7d53af65a37c3db2414a590e05e97

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7874534af889ab7c2c63554c73119d193d2beb7671b551b7f43de5b97ceb5971
MD5 92248136b77dc8f78937a20a0a7c7f74
BLAKE2b-256 34150b56e9b3020613d7d167bc4cdee3ba8686f6320c6aa62e85ed17b54c4dcb

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 462bdcc65a12b53bfa3e7df564ddfb72092a030a923dccd1cf88c4b771ecae3f
MD5 15ba7be91ef44a11e769073c39264f32
BLAKE2b-256 5364d27e344632116da937100a81054c88b0fd6a259de09d6778e03e8231216b

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: nvtx-0.2.13-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 100.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 65ba8e3d81bf34cb363042787b8e2189cda6af38749374997a36262e2219105e
MD5 79ce09975d4e8f0f2eadd59ea1a8a109
BLAKE2b-256 bd667aadfc045e6199d44e3103c7f5c8ea83185a562970d1d3d383acef3eee7c

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ffa37591353296c1a81130d8231c6550ba5faf2f8e2fc87b851f69446a836cf
MD5 d97fbb3e378ca2e448af99051c566ba0
BLAKE2b-256 9ed5e7a24077fbfb3ac28620fc06b07a9ef3dbc44d3a17b7c57756b70ea19f48

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 18634cffbcebd535c8e7c2cbac86a3e3313bd23975d7c3e811e063fbc0b6cb88
MD5 9d68abb5854467ad8ec3953bc7ef790d
BLAKE2b-256 d3f3d788df3c077ad02906ee98c789a75082f81ae687b55450d059e1ef8b4218

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: nvtx-0.2.13-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 100.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.18

File hashes

Hashes for nvtx-0.2.13-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e759bf6d97ff7a134cf290b251c4d55154a707d80131a00c043942e22caab089
MD5 1154d271ebe4ac041a0df49d0bbeaa8d
BLAKE2b-256 dc6f60894b3a20662d9c899a53fad153462195f112623676e4d5c159bf60b136

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ae27d5a2049f72b53bf6c061c3c8badeb8c33758b3eb31a888cca7afbbe3114
MD5 199748d48fcbb333ef0398db325b5ecc
BLAKE2b-256 e7f885a2411fc500f081526a201e66c31510432a64621d1357154a0d219f1482

See more details on using hashes here.

File details

Details for the file nvtx-0.2.13-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nvtx-0.2.13-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 88286e7f1bb098704b8fd58a08a1b0c0fd41843275bf23badb5e32f59e0b38b9
MD5 00dc41ca6923d931b20d6bac097532d8
BLAKE2b-256 75af4d474ba546dc344e80df906ab3af61882eb8a7fa2e3c568f6e2b6be36a26

See more details on using hashes here.

Supported by

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