Is it planned/possible to extend N-API with debugging/monitoring APIs of the underlying VM?
I have following APIs in mind:
v8::CpuProfiler for in process CPU profiling
v8::Isolate::NumberOfHeapSpaces(), v8::Isolate::GetHeapSpaceStatistics, v8::Isolate::AddGCPrologueCallback() and v8::Isolate::AddGCEpilogueCallback() for in process GC/Heap statistics collection
v8::HeapProfiler for creation of Heap dumps
List above may be incomplete but I think the main question is if N-API should be limited of "real production use" or include also debugging/monitoring APIs most likely only of value for few modules.
Is it planned/possible to extend N-API with debugging/monitoring APIs of the underlying VM?
I have following APIs in mind:
v8::CpuProfilerfor in process CPU profilingv8::Isolate::NumberOfHeapSpaces(),v8::Isolate::GetHeapSpaceStatistics,v8::Isolate::AddGCPrologueCallback()andv8::Isolate::AddGCEpilogueCallback()for in process GC/Heap statistics collectionv8::HeapProfilerfor creation of Heap dumpsList above may be incomplete but I think the main question is if N-API should be limited of "real production use" or include also debugging/monitoring APIs most likely only of value for few modules.