3 ms·
Where I work the IDE does indeed present this information prominently, if you consider raw cpu usage to be a decent approximation for energy consumption. A func
by honkhonkpants 10y ago
Where I work the IDE does indeed present this information prominently, if you consider raw cpu usage to be a decent approximation for energy consumption. A function using more than a certain amount of cpu in production is annotated with a little mark and if someone changes it the change review system brings the cost of the code to the attention of the reviewer so they have efficiency in mind when reading proposed changes.
- dman 10y agoSounds impressive - is this a publicly available ide?
- honkhonkpants 10y agoNo it is a company-specific hack. The relevant thing would be to have the profile data to begin with. Then you can work that into whatever annotation scheme your IDE offers.
- dman 10y agoGreat - reading between the lines that would require a. Gathering perf data in prod at scale b. Aggregating it and mapping it back to source c. Having that available within the IDE Looks like youre working for a surprisingly clueful employer if they are doing all of the above.