From: Erwan Velu Date: Mon, 22 Jul 2013 10:54:39 +0000 (+0200) Subject: fio2gnuplot: Keep original filename in temp. files X-Git-Tag: fio-2.1.2~31 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=09f30f436668b56631e819a55b9fd65841780ef9;p=fio.git fio2gnuplot: Keep original filename in temp. files It was pretty hard to understand what trace file was linked to which fio output file. This simple commit add a simpler header to inform the debugger which fio outputfile got used. --- diff --git a/tools/plot/fio2gnuplot.py b/tools/plot/fio2gnuplot.py index ef32ee0b..5e32045d 100755 --- a/tools/plot/fio2gnuplot.py +++ b/tools/plot/fio2gnuplot.py @@ -91,7 +91,9 @@ def compute_temp_file(fio_data_file,disk_perf): files.append(open(file)) pos = len(files) - 1 tmp_filename = "gnuplot_temp_file.%d" % pos - temp_outfile.append(open(tmp_filename,'w')) + gnuplot_file=open(tmp_filename,'w') + temp_outfile.append(gnuplot_file) + gnuplot_file.write("#Temporary file based on file %s\n" % file) disk_perf.append([]) shall_break = False