franciozzy/DProfiler — pull request #1 by ajbennieston (2012-06-26 14:07:51+00:00)
Title: Add option '-a' to produce cumulative average when outputting throughput rate in MB/s

Store accumulator in a double (the rates are double-valued anyway) so limited risk of overflow. Rates tend to be around the few hundred MB/s; precision may be lost towards the end of the scan on a large volume, but this metric was intended only as a quick "smoothed summary" which is less susceptible to fluctuations than the actual measurements.

(I could always use long double if you're worried about the precision... ;)