On Sun, Sep 8, 2013 at 8:43 PM, TJ Marbois <
tmar...@gmail.com> wrote:
> Ben
>
> ok thanks.. yea I was tinkering with them and saw some strange returns - and
> wasn't sure how to interpret them... ie: some functions being tracked and
> others ignored - I figured it must be some internal info that is not
> available to the regular node user.
>
> I was hoping to find a way to examine the event cue - at least enough to see
> whats been placed there from my running program and in what order those
> things will be executed once the cue is started.
If we're talking asynchronous I/O here, then there is usually no clear
order of events.
> Is there any way to do this at all? Or are there plans in the future to
> allow something like this?
Right now not easily but things may get better in v0.12. There is an
in-progress pull request[1] that adds a kind of AOP interceptor API
that makes it easy to track callbacks into JS land.
Completion callbacks are only half the story though. The other half
is tracking asynchronous I/O requests but that's something you can do
with good old monkey-patching. I expect to see npm modules show up
for that minutes after the PR lands.
[1]
https://github.com/joyent/node/pull/6011