powerapi-ng / pyRAPL

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

FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/system/cpu/present' i.e. Windows support #15

Open SyedOmarNooredu opened 2 years ago

SyedOmarNooredu commented 2 years ago

I ran the example with a simple loop:

import pyRAPL

pyRAPL.setup() 

@pyRAPL.measureit
def foo():
    a = 0
    for x in range(10000000000):
        a += x
    print(x)

foo()

and it gave the above error. It looks like a Linux directory. Surprised it doesn't support Windows (or did I miss something?)

qfaizan401 commented 2 years ago

Same problem