disk stats parser update
This commit is contained in:
parent
da89e1b2ee
commit
7ab1eb76d7
|
@ -27,7 +27,7 @@ throughput_keys = ['write', 'read']
|
|||
if len(sys.argv) > 2:
|
||||
quantization = long(sys.argv[2]) * 1000000
|
||||
else:
|
||||
quantization = 500000
|
||||
quantization = 1000000
|
||||
|
||||
out = open('disk_io.dat', 'wb')
|
||||
out2 = open('disk_throughput.dat', 'wb')
|
||||
|
@ -90,19 +90,19 @@ out = open('disk_io.gnuplot', 'wb')
|
|||
print >>out, "set term png size 1200,700"
|
||||
|
||||
print >>out, 'set output "disk_throughput.png"'
|
||||
print >>out, 'set title "disk throughput per %f second(s)"' % (quantization / 1000000.f)
|
||||
print >>out, 'set title "disk throughput per %f second(s)"' % (quantization / float(1000000))
|
||||
print >>out, 'set ylabel "throughput (kB/s)"'
|
||||
print >>out, 'plot',
|
||||
i = 0
|
||||
for k in throughput_keys:
|
||||
print >>out, ' "disk_throughput.dat" using 1:%d title "%s" with lines,' % (i + 1, throughput_keys[i]),
|
||||
print >>out, ' "disk_throughput.dat" using 1:%d title "%s" with steps,' % (i + 2, throughput_keys[i]),
|
||||
i = i + 1
|
||||
print >>out, 'x=0'
|
||||
|
||||
print >>out, 'set output "disk_io.png"'
|
||||
print >>out, 'set ylabel "utilization (%)"'
|
||||
print >>out, 'set xrange [0:*]'
|
||||
print >>out, 'set title "disk io utilization per %f second(s)"' % (quantization / 1000000.f)
|
||||
print >>out, 'set title "disk io utilization per %f second(s)"' % (quantization / float(1000000))
|
||||
print >>out, "set key box"
|
||||
print >>out, "set style data histogram"
|
||||
print >>out, "set style histogram rowstacked"
|
||||
|
|
Loading…
Reference in New Issue