Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: tools/plot-timer-events

Issue 23736004: Add better consistency check and error output to plot script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/profviz/composer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | tools/profviz/composer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698