No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This repo consists of the tools for collecting and parsing the Green Dataset: A Dataset for Mining the Impact of Software Change on Energy Consumption


GreenLogger is able to collect power consumption readings from power meter WattsUp? Pro and also system utilizations from SAR utinity. It has been developed by Abram Hindle. If you want to utilize this tool in your papers, please cite this work: @inproceedings{green-msr,

author = {Abram Hindle},

title = {{Green Mining: A Methodology of Relating Software Change

to Power Consumption}},

booktitle = {MSR},

year = {2012},

pages = {78-87},

ee = {},


How to collect data: perl -o output-file-name

What is in folder wattsup: The source code has been modified per this post ie. baud rate changed from 9600 to 115200

To compile the binary type

gcc -o wattsup wattsup.c

Sample usage is as follows

./wattsup -c 1 ttyUSB0 watts

This will connect to WattsUp once and output the watt usage

Binary has been provided. It was compiled under Centos 5 however it should be usable under most modern Linux 2.6+ systems. I tested it under Ubuntu 8.04 and works just fine. Use at your own risk otherwise compile from source.

How to parse data: In the folder parse-data, is for parsing data.


greentrace is for merging the collected two data sources. It converts the summary of invocation counts for all the system calls to a CSV file then merges it with the mean power consumption of multiple software versions.