PowerAPI, a tool for process-level power estimation