Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>v8-insightsNew to Visual Studio Code? Get it now.
v8-insights

v8-insights

Jonas Wilms

|
374 installs
| (0) | Free
Analyze V8's optimizations from within VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode V8 Insights

Sometimes when benchmarking JavaScript I ask myself How can this be that fast? ...

Although V8 has rich debug logging, finding the right logs is really a challenge. Thus I wrote this plugin which - slightly inspired by the 'deoptigate' plugin - indexes the V8 logs and displays them next to the JavaScript code.

Inline Annotations from V8's TurboFan

Instrument - To use this extension with NodeJS, node needs to be run using the correct flags to turn on debug logging. To launch an existing npm command listed in package.json with the correct commands, run CTRL + SHIFT + P V8 Insights Run NPM command with instrumentation. Alternatively open a self-containing JavaScript file (or the entrypoint of a module) and right-click V8 Insights Run File with instrumentation. Afterwards V8 will write a lot of logs inside the .vs-insights directory.

Analyze - Once the application got warm or finished running, the logs can be analyzed and grouped by function. To trigger this either right-click V8 Insights Analyze and Start or run the same from the command palette.

Inspect - When opening a JavaScript file, functions will be annotated with whether they were optimized or deoptimized, also the compile time is shown. One can navigate to a function history, detailing all the events of the function, or also view the compiled code in Assembly. The Assembly Editor automatically inserts labels for jump targets, which can be renamed through right-click. It also has some basic syntax highlighting, though installing another extension for x86 Assembly syntax support is recommended.

Editing Compiled Assembly

Cleanup - To delete the .vs-insights logs, run the command V8 Insights Cleanup from the command palette

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft