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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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/profviz/composer.js $tools_path/profviz/stdio.js \ | 69 $tools_path/profviz/composer.js $tools_path/profviz/stdio.js \ |
70 -- $@ $options 2>/dev/null | gnuplot > timer-events.png | 70 -- $@ $options 2>/dev/null > timer-events.plot |
| 71 |
| 72 success=$? |
| 73 if [[ $success != 0 ]] ; then |
| 74 cat timer-events.plot |
| 75 else |
| 76 cat timer-events.plot | gnuplot > timer-events.png |
| 77 fi |
| 78 |
| 79 rm -f timer-events.plot |
OLD | NEW |