aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index 61883b7e..db95e2dd 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -360,6 +360,17 @@ API
On Windows not all fields are set, the unsupported fields are filled with zeroes.
See :c:type:`uv_rusage_t` for more details.
+.. c:function:: int uv_getrusage_thread(uv_rusage_t* rusage)
+
+ Gets the resource usage measures for the calling thread.
+
+ .. versionadded:: 1.50.0
+
+ .. note::
+ Not supported on all platforms. May return `UV_ENOTSUP`.
+ On macOS and Windows not all fields are set, the unsupported fields are filled with zeroes.
+ See :c:type:`uv_rusage_t` for more details.
+
.. c:function:: uv_pid_t uv_os_getpid(void)
Returns the current process ID.