Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active May 6, 2019
Embed
What would you like to do?
V8 plot-timer-events.patch
@@ -53,17 +53,17 @@
$d8_exec --noopt --prof --logfile $calibration_log \
--log-timer-events -e "$calibration_script" > /dev/null
- t_1_start=`grep "timer-event-start,\"V8.Execute\"" $calibration_log \
+ t_1_start=`grep "timer-event-start,V8.Execute" $calibration_log \
| tail -n1 | awk -F, '{print $3}'`
- t_1_end=`grep "timer-event-end,\"V8.Execute\"" $calibration_log \
+ t_1_end=`grep "timer-event-end,V8.Execute" $calibration_log \
| tail -n1 | awk -F, '{print $3}'`
n_1=`grep "timer-event\|tick" $calibration_log | wc -l`
$d8_exec --noopt --prof --logfile $calibration_log \
--log-internal-timer-events -e "$calibration_script" > /dev/null
- t_2_start=`grep "timer-event-start,\"V8.Execute\"" $calibration_log \
+ t_2_start=`grep "timer-event-start,V8.Execute" $calibration_log \
| tail -n1 | awk -F, '{print $3}'`
- t_2_end=`grep "timer-event-end,\"V8.Execute\"" $calibration_log \
+ t_2_end=`grep "timer-event-end,V8.Execute" $calibration_log \
| tail -n1 | awk -F, '{print $3}'`
n_2=`grep "timer-event\|tick" $calibration_log | wc -l`
@@ -79,7 +79,7 @@
$d8_exec $tools_path/csvparser.js $tools_path/splaytree.js \
$tools_path/codemap.js $tools_path/profile.js $tools_path/profile_view.js \
$tools_path/logreader.js $tools_path/arguments.js \
- $tools_path/tickprocessor.js$tools_path/profviz/composer.js \
+ $tools_path/tickprocessor.js $tools_path/profviz/composer.js \
$tools_path/profviz/stdio.js \
-- $@ $options 2>/dev/null > timer-events.plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment