summaryrefslogtreecommitdiff
path: root/tools/install.py
diff options
context:
space:
mode:
authorMatt Loring <mattloring@google.com>2015-11-25 06:08:58 -0800
committerBen Noordhuis <info@bnoordhuis.nl>2015-12-08 02:00:46 +0100
commit49440b7ea2496dbb7b343cf1872d96b92be470db (patch)
treefc9dfd71b00d985c78952a17db65a8a3b7dd73ce /tools/install.py
parenta04721df66db6d18f35116bcebcd3c2c6ddb2d19 (diff)
downloadandroid-node-v8-49440b7ea2496dbb7b343cf1872d96b92be470db.tar.gz
android-node-v8-49440b7ea2496dbb7b343cf1872d96b92be470db.tar.bz2
android-node-v8-49440b7ea2496dbb7b343cf1872d96b92be470db.zip
tools: add --prof-process flag to node binary
This change cleans up outstanding comments on #3032. It improves error handling when no isolate file is provided and adds the --prof-process flag to the node binary which executes the tick processor on the provided isolate file. PR-URL: https://github.com/nodejs/node/pull/4021 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'tools/install.py')
-rwxr-xr-xtools/install.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/tools/install.py b/tools/install.py
index 99cbbf249f..ead93966f0 100755
--- a/tools/install.py
+++ b/tools/install.py
@@ -127,48 +127,6 @@ def subdir_files(path, dest, action):
for subdir, files in ret.items():
action(files, subdir + '/')
-def build_tick_processor(action):
- tmp_script = 'out/Release/tick-processor'
- if action == install:
- # construct script
- scripts = [
- 'tools/v8-prof/polyfill.js',
- 'deps/v8/tools/splaytree.js',
- 'deps/v8/tools/codemap.js',
- 'deps/v8/tools/csvparser.js',
- 'deps/v8/tools/consarray.js',
- 'deps/v8/tools/csvparser.js',
- 'deps/v8/tools/consarray.js',
- 'deps/v8/tools/profile.js',
- 'deps/v8/tools/profile_view.js',
- 'deps/v8/tools/logreader.js',
- 'deps/v8/tools/tickprocessor.js',
- 'deps/v8/tools/SourceMap.js',
- 'deps/v8/tools/tickprocessor-driver.js']
- args = []
- if sys.platform == 'win32':
- args.append('--windows')
- elif sys.platform == 'darwin':
- args.append('--nm=' + abspath(install_path, 'share/doc/node') + '/mac-nm')
- args.append('--mac')
- with open(tmp_script, 'w') as out_file:
- # Add #! line to run with node
- out_file.write('#! ' + abspath(install_path, 'bin/node') + '\n')
- # inject arguments
- for arg in args:
- out_file.write('process.argv.splice(2, 0, \'' + arg + '\');\n')
- # cat in source files
- for script in scripts:
- with open(script) as in_file:
- shutil.copyfileobj(in_file, out_file)
- # make executable
- st = os.stat(tmp_script)
- os.chmod(tmp_script, st.st_mode | stat.S_IEXEC)
- # perform installations
- action([tmp_script], 'share/doc/node/')
- if sys.platform == 'darwin':
- action(['deps/v8/tools/mac-nm'], 'share/doc/node/')
-
def files(action):
is_windows = sys.platform == 'win32'
@@ -183,8 +141,6 @@ def files(action):
action(['deps/v8/tools/gdbinit'], 'share/doc/node/')
- build_tick_processor(action)
-
if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
action(['doc/node.1'], 'man/man1/')
else: