vis-jit
v1.0.4
Published
A custom tool to visualize real-time V8 JIT optimizations for NodeJS
Maintainers
Readme
vis-jit
A small module and browser tool to visualize real-time V8 JIT/TurboFan optimization events from V8 log output
Installation
npm install vis-jit
# Usage: vis-jit your_script.js
# Options: -p, --port <number> (default is 3000)Features
What it does
- Redirects curated V8 log output to log file and fetches to frontend
- Parses events in real-time and displays an optimization graph using vis-network as well as the raw data
Notes:
- The frontend is in
public/(editpublic/app.jsandpublic/index.html) - Server entrypoint:
server.js(servespublic/and exposes/api/data) - The parser lives in
public/app.js(functionparseV8Log) - The command line program is in
cli.js
Examples
To use examples, clone the vis-jit repository:
git clone https://github.com/t7aziz/vis-jit.gitThen install the dependencies:
npm installThen run whichever test in tests directory:
vis-jit tests/test3.jsContributions
- PRs welcome. Keep changes small and include a brief test or manual verification steps.
License
- MIT
