A tool to dynamically profile/measure the energy consumption of a Java application/library