| OLD | NEW | 
|---|
| 1 #!/bin/sh | 1 #!/bin/sh | 
| 2 | 2 | 
| 3 # find the name of the log file to process, it must not start with a dash. | 3 # find the name of the log file to process, it must not start with a dash. | 
| 4 log_file="v8.log" | 4 log_file="v8.log" | 
| 5 for arg in "$@" | 5 for arg in "$@" | 
| 6 do | 6 do | 
| 7   if ! expr "X${arg}" : "^X-" > /dev/null; then | 7   if ! expr "X${arg}" : "^X-" > /dev/null; then | 
| 8     log_file=${arg} | 8     log_file=${arg} | 
| 9   fi | 9   fi | 
| 10 done | 10 done | 
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55 | 55 | 
| 56   rm $calibration_log | 56   rm $calibration_log | 
| 57 | 57 | 
| 58   # Overhead in picoseconds. | 58   # Overhead in picoseconds. | 
| 59   options=--distortion= | 59   options=--distortion= | 
| 60   options+=`echo "1000*(($t_1_end - $t_1_start) - ($t_2_end - $t_2_start)) \ | 60   options+=`echo "1000*(($t_1_end - $t_1_start) - ($t_2_end - $t_2_start)) \ | 
| 61               / ($n_1 - $n_2)" | bc` | 61               / ($n_1 - $n_2)" | bc` | 
| 62   echo $options | 62   echo $options | 
| 63 fi | 63 fi | 
| 64 | 64 | 
| 65 echo -e "plot-range,$plot_range\ndistortion,$distortion" | cat - $log_file | | 65 cat $log_file | | 
| 66     $d8_exec $tools_path/csvparser.js $tools_path/splaytree.js \ | 66     $d8_exec $tools_path/csvparser.js $tools_path/splaytree.js \ | 
| 67     $tools_path/codemap.js $tools_path/profile.js $tools_path/profile_view.js \ | 67     $tools_path/codemap.js $tools_path/profile.js $tools_path/profile_view.js \ | 
| 68     $tools_path/logreader.js $tools_path/tickprocessor.js \ | 68     $tools_path/logreader.js $tools_path/tickprocessor.js \ | 
| 69     $tools_path/plot-timer-events.js -- $options $@ | less \ | 69     $tools_path/profviz/composer.js $tools_path/profviz/stdio.js \ | 
| 70     2>/dev/null | gnuplot > timer-events.png | 70     -- $@ $options 2>/dev/null | gnuplot > timer-events.png | 
| OLD | NEW | 
|---|