(PECL ev >= 0.2.0)
Ev::depth — Returns recursion depth
The number of times
was entered minus the number of times
was exited normally, in other words, the recursion depth. Outside
, this number is
. In a callback, this number is
was invoked recursively (or from another thread), in which case it is
This function has no parameters.
ev_depth() returns recursion depth of the default loop.