diff options
author | Juan José <soyjuanarbol@gmail.com> | 2025-01-14 08:50:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 14:50:26 +0100 |
commit | be8eec8c5a99bcce5a1b8435237dad588cfd9f28 (patch) | |
tree | fc5fe595617637d6998c0ff6298198b7cce3f794 /docs/src | |
parent | e59e2a9e49c96feffebdfd44915320e32a91a957 (diff) | |
download | libuv-be8eec8c5a99bcce5a1b8435237dad588cfd9f28.tar.gz libuv-be8eec8c5a99bcce5a1b8435237dad588cfd9f28.zip |
misc: implement uv_getrusage_thread (#4666)
Refs: https://github.com/libuv/libuv/issues/3119
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
Co-authored-by: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/misc.rst | 11 |
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. |