Calculate and persist process energy consumption