Measure energy consumption at source code level

My opinion

How useful is it to record energy consumption at code level in your own development environment?

In my view, there is only one positive aspect, but several negative aspects.

Positive:

Negative:

Tools

NodeJS

Oaklean

Purpose: Measure energy consumption of NodeJS applications
Website: https://www.oaklean.io/
Source code: https://github.com/hitabisgmbh/oaklean

Java

JoularJX

Purpose: Java-based agent for software power monitoring at the source code level
Website: https://www.noureddine.org/research/joular/joularjx
Source code: https://github.com/joular/joularjx

jPowerMonitor

Purpose: Measure energy consumption of Java applications
Website: https://github.com/msg-systems/jpowermonitor

Python

pyJoules

Purpose: Measure energy consumption of Python code snippets
Website: https://github.com/powerapi-ng/pyJoules

CodeCarbon

Purpose: Estimate CO2 emissions of Python applications
Website: https://codecarbon.io/
Source code: https://github.com/mlco2/codecarbon