Patent ID: 8522193

Claim:
A computer-implemented method for presenting source code of a software application, comprising: identifying one or more elements of the source code displayed in an integrated development environment (IDE) tool used by a developer to compose the source code; estimating an expected energy requirement for executing each of the one or more elements of the source code by, before executing the one or more elements of the source code, matching the one or more elements of the source code to one of a plurality of records in a predefined index, wherein each record in the predefined index contains an identifier portion and at least one of (i) an expected energy consumed and (ii) an expected thermal energy emitted by one or more components of a computer architecture when executing the matched one of more elements of the source code; outputting, before executing the one or more elements of the source code, one or more indications of the estimated energy consumption requirements for display whereby the one or more indications of the estimated energy consumption requirements and the one or more elements of the source code are displayed simultaneously in the IDE tool, and wherein the estimated energy consumption requirements is at least one of the energy consumed and thermal energy emitted by the one or more components; executing the one or more elements of the source code; measuring actual energy consumed by the one or more components of the computer architecture when executing the one or more elements of the source code; and updating the expected energy consumed in one of the plurality of records in the predefined index based on the actual energy consumed.