Add support for energy profiling using PAPI.