Description
Hi everyone,
I would like to discuss the best way to expose metrics about the GC life cycle to the JS land through the inspector
module.
As lot of knows, we can give the --trace-gc
and --trace-gc-verbose
to V8, it will then print some data at each GC passage. I believe it would be really useful for users (and APM vendors) to be able to access those metrics to better understand diagnostics their applications.
Anyway i'm (and @keymetrics) willing to put some time on this problem but i'm not sure what is the right way to do it. I suppose modifying V8 in deps/v8/
isn't a really good idea so i would have done it by "hijacking" the protocol session to add our own method. Then at this point just implement it in C++ with the V8 C++ API.
What you guys think of this ? Maybe someone already started to work on something similar ?