Reduce inefficiencies in the PMT tool RAPL API
Ticket Link
https://jira.skatelescope.org/browse/RAC-85
Problem Current RAPL measurement plugin in the PMT Tool has some inefficiencies.
Files are open/read/closed every second for every measurement A lot of unnecessary memory allocation are done The code logic use iostream for file operation without proper error checking which might return invalid values
Proposed solution The fixes for this are rather straightforward.
Use directly the POSIX API instead of iostream Keep file descriptor opens during the measurement session Remove dependency on iostream.