$ patch -u /path/to/plot-timer-events < /path/to/plot-timer-events.patch
Last active
May 6, 2019 03:24
-
-
Save tkuchiki/d7932df3d6670c4431b8e080bd2f51a7 to your computer and use it in GitHub Desktop.
V8 plot-timer-events.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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