Hi all.
I am using following simple code (showed by Jan Jongboom) to detect,
whether my event loop was blocked for more that specified amount of time:
> var last = new Date(),
> setInterval(function () {
> var delta = new Date() - last;
> if (delta > 2) {
> console.error('EVENT LOOP BLOCKED FOR', delta, "ms");
> }
> last = new Date();
> }, 1);
Works ok, but now i am interesting - *how to find actual functions, that
are blocking my loop*? Any ideas? May be inspecting queued tasks for next
loop? But i did not found a way to do that from docs.
p.s. I've searched group archive but found nothing appropriate.
p.p.s. I know that i can look for sync function invocation style, but it's
a lot of work even for my app code, and i had no guarantee, that it's not a
module that i used.
Thanks in advance.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en