aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorPetka Antonov <petka_antonov@hotmail.com>2015-11-16 10:22:00 +0200
committerSaúl Ibarra Corretgé <saghul@gmail.com>2015-11-16 09:34:34 +0100
commit6490c508a9db719f25ca3b37a0987ca4d923bbe4 (patch)
treee847e2fcb0f3d8bdb97460b0da4b17dc0d28061b /docs/src
parentbaf700acdb58c1294b1d7a2403a3fde694ce50f0 (diff)
downloadlibuv-6490c508a9db719f25ca3b37a0987ca4d923bbe4.tar.gz
libuv-6490c508a9db719f25ca3b37a0987ca4d923bbe4.zip
misc: expose handle print APIs
PR-URL: https://github.com/libuv/libuv/pull/291 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst38
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index e9ddba3d..2ce0887d 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -288,3 +288,41 @@ API
.. note::
Not every platform can support nanosecond resolution; however, this value will always
be in nanoseconds.
+
+.. c:function:: void uv_print_all_handles(uv_loop_t* loop, FILE* stream)
+
+ Prints all handles associated with the given `loop` to the given `stream`.
+
+ Example:
+
+ ::
+
+ uv_print_all_handles(uv_default_loop(), stderr);
+ /*
+ [--I] signal 0x1a25ea8
+ [-AI] async 0x1a25cf0
+ [R--] idle 0x1a7a8c8
+ */
+
+ The format is `[flags] handle-type handle-address`. For `flags`:
+
+ - `R` is printed for a handle that is referenced
+ - `A` is printed for a handle that is active
+ - `I` is printed for a handle that is internal
+
+ .. warning::
+ This function is meant for ad hoc debugging, there is no API/ABI
+ stability guarantees.
+
+ .. versionadded:: 1.8.0
+
+.. c:function:: void uv_print_active_handles(uv_loop_t* loop, FILE* stream)
+
+ This is the same as :c:func:`uv_print_all_handles` except only active handles
+ are printed.
+
+ .. warning::
+ This function is meant for ad hoc debugging, there is no API/ABI
+ stability guarantees.
+
+ .. versionadded:: 1.8.0