![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/lib/node_modules/mediasoup/worker/deps/libuv/libuv/docs/src/ |
Upload File : |
.. _metrics: Metrics operations ====================== libuv provides a metrics API to track the amount of time the event loop has spent idle in the kernel's event provider. API --- .. c:function:: uint64_t uv_metrics_idle_time(uv_loop_t* loop) Retrieve the amount of time the event loop has been idle in the kernel's event provider (e.g. ``epoll_wait``). The call is thread safe. The return value is the accumulated time spent idle in the kernel's event provider starting from when the :c:type:`uv_loop_t` was configured to collect the idle time. .. note:: The event loop will not begin accumulating the event provider's idle time until calling :c:type:`uv_loop_configure` with :c:type:`UV_METRICS_IDLE_TIME`. .. versionadded:: 1.39.0