powerapi-ng / pyRAPL

a library to measure the python energy consumption of python code
MIT License
100 stars 9 forks source link

Update README.md using measureit instead of measureit #21

Open kinow opened 6 months ago

kinow commented 6 months ago

Hi,

Running the following,

import pyRAPL

# sudo chmod -R a+r /sys/class/powercap/intel-rapl
pyRAPL.setup()

@pyRAPL.measureit
def foo():
  import autosubmit

foo()

After doing a pip install pyrapl resulted in an error. Looking at the __init__.py here, I found the measureit, and that worked (after this other workaround).

Thanks