call-trace
call-trace copied to clipboard
automating
need to add support for running on node and not having to copy(JSON.stringify(...)) like an idiot
You could use https://github.com/cyrus-and/chrome-remote-interface to evaluate that command. So probably something like...
# instrument a file
call-trace --instrument file.js > file.instrumented.js
# user runs it in a browser that's got debug port 9222 open (first tab ;)
# pull the results
call-trace --pull > output.cpuprofile