---
title: "Tech Tip #61: Your laptop already has an energy meter"
description: "Your operating system already knows which app is draining power."
url: https://greencode.ai/tech-tips/61-check-your-laptop-energy-meter/
---

# Tech Tip #61: Your laptop already has an energy meter

**Your operating system already knows which app is draining power.**

[Watch the video](https://media.greencode.ai/shorts/check-your-laptop-energy-meter-892fd61162dc.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Most developers never look at energy because they think it needs lab equipment. Desktop operating systems already estimate it per application: macOS shows Energy Impact, and Windows has its Energy Estimation Engine behind its power usage views.

### The fix you can use today

- Open Activity Monitor's Energy tab on macOS, or power usage in Windows Task Manager, while your code runs.
- On Linux, try PowerTOP or read RAPL counters with perf.
- Compare two versions of the same task, not absolute numbers.

Microsoft and Apple build energy meters into Windows and macOS. GreenCode's research review looks at tools like these.

### Tools that help

- [green-languages](https://github.com/PLEnergyDev/green-languages?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) (GreenCode researchers): a command-line tool that measures the energy of whole programs or marked sections of code, across languages
- [PowerTOP](https://github.com/fenrus75/powertop?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): shows which processes and devices wake the processor and use power on Linux
- [perf (RAPL counters)](https://perfwiki.github.io/main/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): Linux perf reads the processor's RAPL energy counters, e.g. `perf stat -e power/energy-pkg/`

### How GreenCode helps

GreenCode helps tackle this by measuring energy before any change and after every optimisation pass, on the same machines under the same load. A saving only counts if quality, security and error rate did not get worse. [More on this](https://greencode.ai/feature/energy-and-cost-reduction/).

### Tags

#measurement#profiling#devices

### Sources

- [GreenCode State of the Art Review, D2.1 (2025), PDF p. 68: Windows Energy Estimation Engine and macOS Energy Impact give visibility into application-level energy](https://greencode.ai/publications/d2-1-state-of-the-art-review/)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#61**
- For **Developers**
- Category **Measuring energy**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
