Check the cpuplot example,

Uwe