Add support for energy profiling using PAPI.
Merge pull request #45 from fillexen/energy

Add support for energy profiling using PAPI.