1. A method for managing energy consumption within a computing environment, the method comprising: measuring energy consumption of different hardware components in the computing environment by measuring voltage and current versus time used by the hardware components; collecting values of the measured energy consumption; tracking hardware component used in time during an execution of an individual execution context within the computing environment; and calculating energy consumption of the individual execution context by associating the corresponding collected measured energy consumption to the hardware component used.