pyRAPL icon indicating copy to clipboard operation
pyRAPL copied to clipboard

Measurements of multiple functions

Open JerridPlymale opened this issue 3 years ago • 1 comments

Hello,

I am having some trouble getting pyRAPL to work the way I want to, and was hoping someone might be able to help. I have searched for tutorials already with no luck, leading me here.

Currently I am using the Measurement.begin() and Measurement.end() method to gather the power consumption of a specific piece of code. This then gets saved to a .csv file so that the data can be analyzed later on.

What I would like to do is use this method throughout my code to measure the power consumption of multiple functions in order to determine what has the highest power cost and so on. Currently, I set up pyRAPL once, create a .csv output using a specific file, create the instance of pyRAPL.Measurement, begin and end the measurement around the code in question, export the results to the .csv, and finally save the .csv to flush the buffers.

I have tried repeating this method with other functions in the code, however I get this error: TypeError: vars() argument must have dict attribute. The error occurs on line 46 of buffered_output.py. Any advice on how to fix this issue?

JerridPlymale avatar Feb 04 '21 17:02 JerridPlymale

Try to put a simplified example of a code that throws this error, to be able to debug it's easier

av1m avatar Aug 12 '22 10:08 av1m