Runtime Type Information
Collect runtime type information
This is a demo how you could use V8's new type information feature.
The V8 inspector protocol provides access to the type information. Since the inspector is available in Node (see Node Documentation), it's easy to write modules that utilize type information. This repo is a very simple demo of this.
Compare the runtime type information with your TypeScript or Flow annotations. Or use them to find bugs and performance issues.
For technical details on type profile implementation in V8, see https://chromium-review.googlesource.com/c/v8/v8/+/508588 and the Design Doc.
npm start, then open localhost:8080.
Note: currently needs Node master, TypeProfile is not in 9.4. You can build from source or download a nightly build.