package async_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create_exn : unit -> t

create_exn will create a subscription to stats for the async scheduler's thread pool. This function will raise if called more than once, as multiple separate callers to Thread_pool.get_and_reset_stats will interfere with each other.

val get_and_reset : t -> Thread_pool.Stats.t

See Thread_pool.Stats for documentation. Note that since calling this resets some stats, multiple different callers trying to use this function will interfere with each other.

OCaml

Innovation. Community. Security.