Try it out! Node-Event-Loop
This Node.js Event Loop Visualizer shows the phases that an Event Loop makes when executing Javascript code in Node.js Runtime. The server captures the traces at runtime and then, it returns them to the visualizer.
- Added feature to support actual Node.js Event Loop & processTicksAndRejections traces
- Added better visualization of Node.js' Event Loop phases
- Added a visualizer of the processTicksAndRejections loop
- Added a "terminal" to print logs with an Ubuntu skin
- New examples and descriptions
- Toggle color mode
- Performance metrics from libuv
- The repo for the Node.js modified source code is here
You need to compile the Node.js modified project. Then you need to copy the file from /out/Release/node
to server/node/node
cd client
npm install
npm run dev
cd server
npm install
npm run start
- Promise.resolve().then()
- Promise.reject().catch()
- new Promise((resolve) => resolve()).then
- process.nextTick()
- queueMicrotask()
- setTimeout()
- setInterval() (You need to add a clearInterval() at some point to stop the execution)
- fs.readFile()
- setImmediate()
- async/await
- http.createServer
- http.request
- net.createServer
- net.createConnection
Some features (Ex. http.createServer) are just proxies to the original function. The reason is to control what operations are allowed to do, and prevent malicious attacks. Most of this proxies only receive a callback function as argument.
If you find any issue, please open a new issue
If you want to test some functionality that is not supported yet, please open a ticket request.
This repo is an improvement of the wonderful work made by
![]() PhakornKiong |
![]() Hopding |
![]() latentflip |
![]() thedull |