diff options
Diffstat (limited to 'src/gsttl_plot.sh')
-rwxr-xr-x | src/gsttl_plot.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gsttl_plot.sh b/src/gsttl_plot.sh index 6589c28..7529a07 100755 --- a/src/gsttl_plot.sh +++ b/src/gsttl_plot.sh @@ -58,19 +58,21 @@ plt_memory_origin=`echo "scale=4;1.0-($height1*3.0)" | bc` plt_caps_origin=`echo "scale=4;1.0-($height1*6.0)" | bc` plt_ev_origin=`echo "scale=4;1.0-($height1*9.0)" | bc` plt_msg_origin=`echo "scale=4;1.0-($height1*11.0)" | bc` plt_qry_origin=`echo "scale=4;1.0-($height1*13.0)" | bc` last_ts=`grep -v "sync_times" ${base}.log | cut -d' ' -f3 | sort -n | tail -n1` -first_ts=`grep -v "sync_times" /tmp/gsttl.log | cut -d' ' -f3 | sort -n | head -n1` - +#first_ts=`grep -v "sync_times" /tmp/gsttl.log | cut -d' ' -f3 | sort -n | head -n1` +first_ts=`grep "^pad_" ${base}.log | cut -d' ' -f3 | sort -n | head -n1` # debugging cat <<EOF # page height : $plot_height1 , $plot_height2 : $plot_height # graph height : $height1 +# ts range : $first_ts : $last_ts + EOF # configure output # http://en.wikipedia.org/wiki/Paper_size case $pagesize in a3) page_with="29.7 cm";page_height="42.0 cm";; @@ -139,12 +141,14 @@ plot \\ EOF done cat <<EOF set y2label unset y2tics +set xrange [0:$last_ts] + set size 0.5,$height1 set origin 0.5,$plt_perf_origin set xlabel "Time (sec.msec)" set xtics format "%g" set ylabel "Percent" set ytics nomirror autofreq |