Node.js has a Performance Hooks API to expose internal runtime metrics to the application. Some metrics we calculate in this package are also exposed there (for example, gc.pause) and others could be useful. There are also new metrics coming, like monitorEventLoopDelay and monitorEventLoopIdleness.
By using Performance Hooks, we might be able to reduce (and maybe drop) dependency on C++ code in the future, making major Node.js bumps easier.