$ git clone git://github.com/v8/v8.git v8 && cd v8
$ make dependencies # or mkdir build/gyp && git clone git://github.com/svn2github/gyp.git build/gyp
$ make native # (or the like: `$ make ia32`, etc)
$ out/native/d8 --prof 'test.js' # generates 'v8.log'
$ tools/mac-tick-processor # processes the generated 'v8.log'
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |