package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Metrics.

See Metrics operations in libuv.

val idle_time : Loop.t -> Unsigned.UInt64.t

Retrieves the amount of time the loop has been blocked waiting in the kernel.

Binds uv_metrics_idle_time.

Requires Luv 0.5.5 and libuv 1.39.0.

Feature check: Luv.Require.(has metrics_idle_time)

type t = {
  1. loop_count : Unsigned.uint64;
  2. events : Unsigned.uint64;
  3. events_waiting : Unsigned.uint64;
}

Metrics returned by Luv.Metrics.info.

Binds uv_metrics_t.

Requires Luv 0.5.13 and libuv 1.45.0.

Feature check: Luv.Require.(has metrics_info)

val info : Loop.t -> (t, Error.t) result

Retrieves loop metrics.

Binds uv_metrics_info.

Requires Luv 0.5.13 and libuv 1.45.0.

Feature check: Luv.Require.(has metrics_info)

OCaml

Innovation. Community. Security.