Skip to content

Instantly share code, notes, and snippets.

@ngryman
Created May 31, 2015 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngryman/d632054f7836d606b2aa to your computer and use it in GitHub Desktop.
Save ngryman/d632054f7836d606b2aa to your computer and use it in GitHub Desktop.
Trace optimizations in v8
// warm up
fn()
fn()
// try to optimize
;%OptimizeFunctionOnNextCall(compare)
// call optimized
fn()
@ngryman
Copy link
Author

ngryman commented May 31, 2015

Run with node --trace-opt --trace-deopt --code-comments --allow-natives-syntax trace.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment