Mercurial > yaffs-ecoscentric-gpl
comparison linux-tests/drive_gnuplot.sh @ 392:37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Fri, 19 Mar 2010 16:06:14 +1300 |
| parents | |
| children | fab223fcc02c |
comparison
equal
deleted
inserted
replaced
| 391:d0784604eafd | 392:37c92ae29f6e |
|---|---|
| 1 #!/bin/sh | |
| 2 # drive_gnuplot syntehsises the commands for driving gnuplot | |
| 3 | |
| 4 the_log_file=data | |
| 5 | |
| 6 plot_str=" plot 'trunc_data' using 1:3 with linespoints title 'free', '' using 1:4 with linespoints title 'erased'" | |
| 7 | |
| 8 echo "set title 'yaffs free space and erased space'" | |
| 9 | |
| 10 echo $plot_str | |
| 11 | |
| 12 while true; do | |
| 13 sleep 1 | |
| 14 tail -100 $the_log_file > trunc_data | |
| 15 echo replot | |
| 16 done | |
| 17 |
