pyJoules
pyJoules copied to clipboard
A Python library to capture the energy consumption of code snippets
Adding support for measuring energy cost of small code snippets, like timeit does: https://docs.python.org/3/library/timeit.html
I faced the same issue and taking note of what nikhil153 mentioned, did the following fix in line 136 of rapl_device.py: if domain_name_file.readline() == 'package-' + str(socket_id) + '\n': #removed...
Hi, is it possible to measure energy of raspberry pi. I tried it but failed to measure. It shows an error- ``` Traceback (most recent call last): File "/home/master-pi/test.py", line...
@altor @rouvoy @chakib-belgaid @danglotb I have some confusion about the outputs that pyJoules returns. It return as follows: ```begin timestamp : 1675697491.336882; tag : foo; duration : 3.7640533447265625; package_0 :...
Is it possible to use pyjoules to profile the energy on raspberry pi? Thanks!
Hi , How to see the output after, from pyJoules.device import DeviceFactory from pyJoules.device.rapl_device import RaplPackageDomain, RaplDramDomain from pyJoules.device.nvidia_device import NvidiaGPUDomain from pyJoules.energy_meter import EnergyMeter domains = [RaplPackageDomain(0), RaplDramDomain(0), NvidiaGPUDomain(0)]...
Hi all I'm at level 0 in python :( ... I've installed piJoules with pic Try just ton run an example: from pyJoules import * def foo(): print("ok"); # Usage...
Solves #23 Adds minimal documentation of units of output to README
@altor @rouvoy @chakib-belgaid @danglotb **I have the following code snippet running on Ubuntu 22.04.1** ``` from pyJoules.energy_meter import EnergyContext from pyJoules.device.rapl_device import RaplDramDomain from pyJoules.handler.csv_handler import CSVHandler csv_handler = CSVHandler('result.csv')...