Skip to content

Instantly share code, notes, and snippets.

@bjelline
Last active December 22, 2015 02:28
Show Gist options
  • Save bjelline/6403591 to your computer and use it in GitHub Desktop.
Save bjelline/6403591 to your computer and use it in GitHub Desktop.
#!/bin/sh
export D8_PATH=/usr/local/bin
coffee --nodejs --prof $@
echo "\rProcessing v8.log ..."
/usr/local/bin/tools/mac-tick-processor >> v8-processed.log
#!/bin/bash
echo "this is not a shell script! read the code"
# you probably installed v8 with brew, when you installed node with brew
# go find the source tar:
# brew --cache
# and unpack it to /usr/local/src/
# cd /usr/local/src/
# tar xvfz /Library/Caches/Homebrew/v8-3.19.18.4.tar.gz
#
# there is a bunchof tools (shell- and javascript) that you can copy to
# your bin right away:
# copy -a tools /usr/local/bin/
#
# now you can prepare build v8 NATIVE!
# see http://code.google.com/p/v8/wiki/BuildingWithGYP
#
# cd /usr/local/src
# make dependencies
# make native
#
# the result should be out/native/d8. copy that:
# cp out/native/d8 /usr/local/bin/d8
#
# now you can try out node-profile app.js !
#!/bin/sh
export D8_PATH=/usr/local/bin
node --prof $@
echo "\rProcessing v8.log ..."
/usr/local/bin/tools/mac-tick-processor >> v8-processed.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment