package eio
- 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=8ed5c13e6689f31c85dca5f12762d84b8cc0042a7b07d3e464df6eb4b72b3dfc
sha512=46e8f817f32c3316e7f35835a136ad177a295b3306351eb2efa2386482b0169a5b19ed2925b32da2a1f10d40f083fe3d588dd401908f9fec6e4a44cd68535204
doc/eio/Eio/Private/Trace/index.html
Module Private.TraceSource
Trace Eio events using OCaml's runtime events system.
Each thread/fiber/promise is identified by a unique ID.
Recording events
Libraries and applications can use these functions to make the traces more useful.
log msg attaches text msg to the current fiber.
with_span op fn runs fn (), labelling the timespan during which it runs with op.
suspend_fiber op records that the current fiber is now suspended waiting for op.
Recording system events
These are normally only called by the scheduler.
create_fiber ~cc id records the creation of fiber id in context cc.
create_cc id ty records the creation of cancellation context id.
create_obj id ty records the creation of id.
get src records reading a promise, taking from a stream, taking a lock, etc.
try_get src records that the current fiber wants to get from src (which is not currently ready).
put dst records resolving a promise, adding to a stream, releasing a lock, etc.
suspend_domain records when the event loop is stopped waiting for events from the OS.
domain_spawn ~parent records that the current domain was spawned by fiber parent.
exit_cc () records that the current CC has finished.