wallet77 / v8-inspector-api Goto Github PK
View Code? Open in Web Editor NEWA simple node module to access V8 inspector + some tools to export and read the data.
License: MIT License
A simple node module to access V8 inspector + some tools to export and read the data.
License: MIT License
Project's name and version can be found in package.json.
It's still loaded at the beginning of the process, so we just need to display it before the tasks execution.
For each task that has failed, we should display a few possible command to execute in order to help the user to understand why this task has failed.
Line 25 in dd4564e
When the suffix is heapsnapshot, dev tools won't load the file. With heapprofile it works fine. Took me some time to figure this out ;)
I don't see a reason why it wouldn't be supported, but in the documentation, you specify up until version 16.
Is there a reason for that? Or does just the documentation need updating?
I want to use the lib for on-demand (i.e. triggered by custom HTTP endpoints) CPU profiling with a typical backend app (express, Kafka, etc.).
As I see in the example the single Inspector
instance is supposed to be used. However it does create and connect a Session
in the constructor:
Lines 18 to 19 in 3736a6f
So if I create the singleton Inspector
instance once (on the app start-up) -- is there any overhead related with the constructor code? (most of the time profiling is not supposed to be used, so it's required not to impact the app's performance/resources until it's actually triggered)
Or should I instead create new Inspector
instance each time profiling is triggered? If yes -- how to make sure the object is GC-ed?
Same question but in other words -- how is Inspector
instance supposed to be used for a long-running app, as a (global) singletone or as a local reference?
Scanning my project looking for node_modules creep, I discovered that this module has two dependencies that are 120MB between the two of them. This is... substantial.
du -sh * | sort -h
16K ieee754
24K async-await-retry
24K base64-js
32K isarray
32K punycode
36K inspector-api
64K xml2js
72K querystring
76K sax
92K url
100K uuid
104K events
168K xmlbuilder
320K jmespath
372K buffer
59M @voodoo.io
62M aws-sdk
aws-sdk has a lot of what look like source versus output problems that probably could use an .npmignore fix.
But @voodoo.io's main dependency is also aws-sdk, which seems to be on a different version number?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.