strace might get you some useful info. you might try filtering on futex and i noticed epoll_* stuff i hadn't seen before (probably because most programs aren't event driven).
strace -f -s 1024 -e trace=futex,<other filters> <node> 2>&1 | tee ~/strace i generally start out and collect everything, when i think i have what i want, go into vi ':set hlsearch' and start looking around. then apply filters and go again. hth On Thu, Mar 22, 2012 at 11:58, Ben Noordhuis <[email protected]> wrote: > On Thu, Mar 22, 2012 at 16:08, C. Mundi <[email protected]> wrote: >> Glad you asked. I mean the node user-space events that we connect to with >> listeners, like emitted.on('eventname',...). What I'd like is a tool which >> can snoop by walking the whole queue for 'eventname' without dequeuing any >> events. The tool would have to be integrated with V8 I think because I want >> to see events added and removed in "realtime" > > EventEmitter is synchronous, there is no queue. One end emits an event > and the other end receives it immediately. It's the observer design > pattern under a different name, really. > > If you only want to retrieve the list of listeners, call > `.listeners('eventName')`. > > -- > 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 -- 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
