Python bindings for ROC-TX library, AMD's Code Annotation Events API.
This package provides Python bindings for ROC-TX.
python setup.py install --prefix=/dir/to/install
import roctx4py as rx
rx.start("count")
for i in range(1000):
pass
rx.stop("count")
## Or, use with a decorator
@rx.profile
def count():
for i in range(1000):
pass
For more details, check example directory.