fio2gnuplot: Fixing plotting issues on shorten files
authorErwan Velu <erwan@enovance.com>
Fri, 2 Aug 2013 08:52:50 +0000 (10:52 +0200)
committerErwan Velu <erwan@enovance.com>
Mon, 5 Aug 2013 15:09:59 +0000 (17:09 +0200)
commitffab7c2fefe68e5780374c0ee8c6156d5940f087
tree157869284a6e1b5bee4d98e59f33aaa56db1892f
parent51d52208f20ed8aa5a4273e2a87cd62274c77bab
fio2gnuplot: Fixing plotting issues on shorten files

fio2gnuplot was mixing files when some got shorten.

The position inside the array was used to remember what file was read
leading to mistakes once some values got ignored.

As a fix, we shall count the index for every single line we read and add
to the time & perf we keep. While writing data to the temporary files,
the extraction of the index insure we write to the proper file.

Before this patch, we observed at the end of the traces some stupid artefacts like loops... was
looking like a 4years old kid drawing...

That's now fixed.
tools/plot/fio2gnuplot.py