Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate exporting metrics from perf_hooks #15

Open
mmarchini opened this issue Mar 2, 2020 · 1 comment
Open

Evaluate exporting metrics from perf_hooks #15

mmarchini opened this issue Mar 2, 2020 · 1 comment

Comments

@mmarchini
Copy link
Contributor

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.

@brharrington
Copy link
Contributor

I think we looked at it before and one of the issues is it didn't work with all the versions of node we needed to support (6+). It looks like this project now lists >=10.0.0, so maybe it is more viable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants