|
|
||
|---|---|---|
| .. | ||
| docs | ||
| src/nvtx | ||
| tests | ||
| .flake8.cython | ||
| LICENSE.txt | ||
| MANIFEST.in | ||
| README.md | ||
| pyproject.toml | ||
| setup.cfg | ||
| setup.py | ||
README.md
nvtx Python package
Installation
Install using conda:
conda install -c conda-forge nvtx
...or using pip:
python -m pip install nvtx
Quick start
-
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() -
Use NVIDIA Nsight Systems to collect profile data:
nsys profile -t nvtx python demo.py -
Visualize the results using the Nsight systems GUI:
Documentation
See here for detailed docs.
Release Notes
0.2.12
- Expose API via
domainobject for better performance. - No-OP when domain is disabled.
- Improved documentation.
