From 6b7adfd6bd16a570ef0864be27f3052b9bf0f75f Mon Sep 17 00:00:00 2001 From: rakshasa Date: Thu, 28 Nov 2013 01:53:20 +0900 Subject: [PATCH] Added scripts for gnuplot. --- doc/plot/instrumentation_transfers.sh | 31 +++++++++++++++++++++++++++ doc/plot/mincore.sh | 30 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100755 doc/plot/instrumentation_transfers.sh create mode 100755 doc/plot/mincore.sh diff --git a/doc/plot/instrumentation_transfers.sh b/doc/plot/instrumentation_transfers.sh new file mode 100755 index 00000000..698c792d --- /dev/null +++ b/doc/plot/instrumentation_transfers.sh @@ -0,0 +1,31 @@ +#/bin/bash +gnuplot << EOF + +set terminal png size 1024,768 enhanced +set xdata time +set timefmt "%s" +set format x "%H:%M" +set y2tics +set autoscale xfix +set key autotitle columnhead + +set format y "%.0f" +set format y2 "%.0f" + +set output "output_$1_transfer_requests.png" +plot \ + "instrumentation_transfers.log.$1" using 1:2 title 'downloading' smooth sbezier with lines lw 4 axis x1y1,\ + "instrumentation_transfers.log.$1" using 1:3 title 'finished' smooth sbezier with lines lw 4 axis x1y1,\ + "instrumentation_transfers.log.$1" using 1:4 title 'skipped' smooth sbezier with lines lw 2 axis x1y2,\ + "instrumentation_transfers.log.$1" using 1:5 title 'unknown' smooth sbezier with lines lw 2 axis x1y2 + +set output "output_$1_transfer_queues.png" +plot \ + "instrumentation_transfers.log.$1" using 1:6 title 'queue added' smooth sbezier with lines lw 2 axis x1y1,\ + "instrumentation_transfers.log.$1" using 1:7 title 'queue removed' smooth sbezier with lines lw 2 axis x1y1,\ + "instrumentation_transfers.log.$1" using 1:8 title 'queue total' smooth sbezier with lines lw 4 axis x1y2,\ + "instrumentation_transfers.log.$1" using 1:9 title 'canceled added' smooth sbezier with lines lw 2 axis x1y1,\ + "instrumentation_transfers.log.$1" using 1:10 title 'canceled removed' smooth sbezier with lines lw 2 axis x1y1,\ + "instrumentation_transfers.log.$1" using 1:11 title 'canceled total' smooth sbezier with lines lw 4 axis x1y2 + +EOF diff --git a/doc/plot/mincore.sh b/doc/plot/mincore.sh new file mode 100755 index 00000000..3dfaa630 --- /dev/null +++ b/doc/plot/mincore.sh @@ -0,0 +1,30 @@ +#/bin/bash +gnuplot << EOF + +set terminal png size 1024,768 enhanced +set xdata time +set timefmt "%s" +set format x "%H:%M" +set y2tics +set autoscale xfix +set key autotitle columnhead + +set format y "%.0f" +set format y2 "%.0f" + +set output "output_$1_incore_sync.png" +plot \ + "instrumentation_mincore.log.$1" using 1:6 title 'success' smooth sbezier with lines lw 4 axis x1y1,\ + "instrumentation_mincore.log.$1" using 1:7 title 'failed' smooth sbezier with lines lw 4 axis x1y1,\ + "instrumentation_mincore.log.$1" using 1:8 title 'not synced' smooth sbezier with lines lw 4 axis x1y2,\ + "instrumentation_mincore.log.$1" using 1:9 title 'not deallocated' smooth sbezier with lines lw 4 axis x1y2 + +set format y "%.0g" + +set output "output_$1_incore_alloc.png" +plot \ + "instrumentation_mincore.log.$1" using 1:12 title 'allocations' smooth sbezier with lines lw 2 axis x1y1,\ + "instrumentation_mincore.log.$1" using 1:13 title 'deallocations' smooth sbezier with lines lw 4 axis x1y1,\ + "instrumentation_mincore.log.$1" using 1:10 title 'alloc failed' smooth sbezier with lines lw 2 axis x1y2 + +EOF