green-kernel / powerletrics

Powermetrics for Linux
GNU Affero General Public License v3.0
5 stars 0 forks source link

Add overhead the tool generates #20

Closed ribalba closed 7 hours ago

ribalba commented 9 hours ago

We know the pid of the powerletrics python process and also how long the ebpf code takes to execute in sum. So we can calculate the sum of time the powerletrics process was on the cpu and can show this as a % of elapsed time.

So it is possible to show the overhead which is a really nice little feature.

ribalba commented 7 hours ago

Done https://github.com/green-kernel/powerletrics/commit/e0e47ac4d7f0319ce2e519474a8233c6951d144e