Skip to content

Measurements of multiple functions #12

Open
@JerridPlymale

Description

@JerridPlymale

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions