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

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

Issue 17592002: Add v8.log visualizer page. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: small changes Created 7 years, 5 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/plot-timer-events.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | tools/plot-timer-events.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698