sosy-lab / cpu-energy-meter

A tool for measuring energy consumption of Intel CPUs
BSD 3-Clause "New" or "Revised" License
321 stars 29 forks source link

Optimize measurements #10

Closed PhilippWendler closed 6 years ago

PhilippWendler commented 7 years ago

We want the measurements to work with as little overhead as possible. Currently for every single measurement (i.e., four times per cpu per measurement interval) the device file in /dev/ is opened. This could be optimized at least to read all values at once, or even just opening the file during initialization and then reusing the same file descriptor.

This should be done after #9.

TBunk commented 6 years ago

Done in commit 9a3dbe2dd5ed28061326f00acd6de70211bd408b.