ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | tools_dir=$(dirname "$0") |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame^] | 4 | d8_exec=$tools_dir/../d8 |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 5 | |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame^] | 6 | # compile d8 if it doesn't exist. |
| 7 | if [ ! -x $d8_exec ] |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 8 | then |
| 9 | scons -C $tools_dir/.. d8 |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 10 | fi |
| 11 | |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame^] | 12 | # nm spits out 'no symbols found' messages to stderr. |
| 13 | $d8_exec $tools_dir/splaytree.js $tools_dir/codemap.js \ |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 14 | $tools_dir/csvparser.js $tools_dir/consarray.js \ |
| 15 | $tools_dir/profile.js $tools_dir/profile_view.js \ |
| 16 | $tools_dir/tickprocessor.js -- $@ 2>/dev/null |