--trace-opt and --trace-deopt

V8 command-line flags that make Node.js print a line each time a function is optimised or deoptimised, with the reason.

In more detail

Run node --trace-opt --trace-deopt app.js to see them. They are V8 options rather than Node.js options, listed by node --v8-options, and their output format can change between versions.

Related terms

Taught in

References