unkaktus / calcium

Tracking carbon footprint of computing 🌿

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🪨 calcium

calcium is a wrapper tool to collect the CPU usage history, making possible later estimations of the carbon footprint.

Manual building

  1. Install Go (https://go.dev)

  2. Build calcium for Linux:

go install github.com/unkaktus/calcium@latest
export PATH=$PATH:$HOME/go/bin

Usage

Run any app transparently:

calcium ./invert_matrix data.dat

It will then output to $HOME/.calcium/calcium-report.csv the following information in CSV format:

Timestamp, CPU Name, Binary Name, User CPU Time [s], System CPU Time [s]

For example,

2024-07-16 23:43:04,"Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz",htop,0.08,0.15

About

Tracking carbon footprint of computing 🌿

License:MIT License


Languages

Language:Go 100.0%