joyent/node — pull request #3758 by shigeki (2012-07-24 08:45:11+00:00)
Title: process: add `process.activeHandles`

This api shows the total number of active handles in the current event loop.

This is beneficial to check the change of active handles of dgram, server, socket and timers after using their ref() and unref() methods. See the tests for examples.

We can also obtain the total number of active handles by using process._getActiveHandles().length, so the alternative is to change it to be a public API.