package async_unix
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=814d3a9997ec1316b8b2a601b24471740641647a25002761f7df7869c3ac9e33
doc/async_unix.thread_pool/Thread_pool/Stats/index.html
Module Thread_pool.StatsSource
type t = {num_threads : int;(*
*)num_threadsis the number of currently open threads.num_work_completed : int;(*
*)num_completed_workis the total number of jobs that the thread pool has completed, including work completed by reserved helper threads. The previous value ofnum_completed_workcan be subtracted from this to get the number of jobs completed since the previous stats.unfinished_work : int;(*
*)unfinished_workis the current total number of jobs that have been added to the thread pool but not completed, including work added to helper threads viaadd_work_for_helper_thread.total_working_time : Time_ns_unix.Span.t;(*
*)total_working_timeis the total amount of time spent working on jobs across all threads, including jobs that are currently in progress. E.g. if 5 threads each run a 1s job, this will be 5s. The previous value oftotal_working_timecan be subtracted from this to get the amount of time spent working since the last previous stats.max_unfinished_work : int;(*
*)max_unfinished_workis the max observed value ofunfinished_worksince the last time stats were collected.max_queue_wait : Time_ns_unix.Span.t;(*
*)max_queue_waitis the max observed time that work has waited in the queue to be assigned an available thread to run on. This includes both work that has started, and work that is waiting to start. This does not include work added directly to helper threads viaadd_work_for_helper_thread.
}