StressAndLog is a project mainly written in C++ and C, it's free.
Stress a Linux machine whilst logging utilisation and power consumption using a WattsUp meter
A simple little command-line app to stress a Linux computer whilst symaltaneously logging power consumption and utilisation.
DEPENDENCIES: stress http://weather.ou.edu/~apw/projects/stress/
WattsUp? meter https://www.wattsupmeters.com