-
Notifications
You must be signed in to change notification settings - Fork 78
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
Any plans/thoughts about monitoring event loop performance #131
Comments
There are some of these in |
Thanks @jkrems, I'm interested in monitoring event loop.
|
Have a look at my blog post: https://medium.com/the-node-js-collection/what-you-should-know-to-really-understand-the-node-js-event-loop-and-its-metrics-c4907b19da4c I am covering some metrics that can be easily gathered there. |
This might be useful: Disclaimer: I'm the author and blocked-at is still considered experimental (but seems to work) |
I know that @jasnell looked extensively in it, and it seemed it could not be possible without a breaking change in libuv, which I don't think the team was willing to do. |
Still intending to work on this, but it definitely will be libuv2 |
We currently do this with N|Solid and from my understanding it's... not easy. I've looked into the existing ecosystem tooling and it kinda reflects that, unfortunately. 😞 @Fishrock123 and @cxreg did a ton of work on it and may be able to share their experience with it. |
Can already be done with a uv_check_t + uv_prepare_t.
Can you specify "queue" and "phase" a bit more? |
Yeah we pretty much do this stuff in N|Solid already, and also event loop "stall" notifications.
Probably one of the things we do: essentially the number of |
@bnoordhuis : By phases I'm referring to phases to https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/. By queues I meant macro task queues in that phase and micro task queue in process.tick(). @Fishrock123 : That's what I meant. |
should this remain open? [ I am trying to chase dormant issues to closure ] |
I've abandoned the effort to get something into libuv as I just could not get feedback or any positive momentum from the maintainers. I've added loop delay sampling to node.js itself so I think we can close this |
Event loop performance metrics like
Can be helpful just like GC numbers dumped by V8 VM.
Any thoughts for or against this?.
The text was updated successfully, but these errors were encountered: