I was following the Marker API usage in README, but got an error at the first call to pylikwid.init(), because it is not a marker API but a performance monitoring API (which should be called as pylikwid.init(cpus)).
Fortunately I've got the code working by following tests/testmarker.py. Just add the marker prefix to all marker API names.
BTW, it is amazing that this tool can count hardware events for user-defined Python code blocks!
I was following the Marker API usage in README, but got an error at the first call to
pylikwid.init()
, because it is not a marker API but a performance monitoring API (which should be called aspylikwid.init(cpus)
).Fortunately I've got the code working by following
tests/testmarker.py
. Just add themarker
prefix to all marker API names.BTW, it is amazing that this tool can count hardware events for user-defined Python code blocks!