Library
Module
Module type
Parameter
Class
Class type
Functions that libraries can use to add events to the trace. * * If mirage-profile is compiled with tracing disabled, these are null-ops (or * call the underlying untraced operation, as appropriate). The compiler should * optimise them out in this case.
val named_condition : string -> 'a Lwt_condition.t
Create a Lwt_condition that will label its thread with the given name.
val named_mvar_empty : string -> 'a Lwt_mvar.t
Create a Lwt_mvar that will label its threads with the given name.
val named_mvar : string -> 'a -> 'a Lwt_mvar.t
Create a Lwt_mvar that will label its threads with the given name.
Records the current value of the named counter. * (for internal use: use Counter.set_value instead)
val should_resolve : 'a Lwt.t -> unit
Add a hint that this thread is expected to resolve. * This is useful if a thread never completes and you want to find out why. * Without the hint, the viewer makes such threads almost invisible.
val note_hiatus : hiatus_reason -> unit
Record that the process is about to stop running for a while.