module Value: sig
.. end
A module to monitor OCaml values such as native integers, floating-point numbers, booleans, strings.
val observe_int_fct : ?weak:bool -> ?period:int -> string -> (unit -> int) -> unit
observe_int n f
monitors an integer given by the function f
.
weak
: Chooses whether the integer is attached to a weak pointer or a normal pointer.
period
: Sets the period to which the value will be calculated (in milliseconds). Default is 100ms.
val observe_int : ?weak:bool -> ?period:int -> string -> int -> unit
observe_int_now n i
monitors an integer i
.
val observe_float_fct : ?weak:bool -> ?period:int -> string -> (unit -> float) -> unit
observe_float n f
monitors a floating-point number given by the function f
.
val observe_float : ?weak:bool -> ?period:int -> string -> float -> unit
observe_float_now n f
monitors a floating-point number f
.
val observe_bool_fct : ?weak:bool -> ?period:int -> string -> (unit -> bool) -> unit
observe_bool n f
monitors a boolean given by the function f
.
val observe_bool : ?weak:bool -> ?period:int -> string -> bool -> unit
observe_bool_now n b
monitors a boolean b
.
val observe_string_fct : ?weak:bool -> ?period:int -> string -> (unit -> string) -> unit
observe_string n f
monitors a string given by the function f
.
val observe_string : ?weak:bool -> ?period:int -> string -> string -> unit
observe_string_now n s
monitors a string s
.
val observe_int_ref : ?period:int -> string -> int Pervasives.ref -> int Pervasives.ref
observe_int_ref n i
monitors an integer reference i
.
val observe_float_ref : ?period:int -> string -> float Pervasives.ref -> float Pervasives.ref
observe_float_ref n f
monitors a floating-point number reference f
.
val observe_bool_ref : ?period:int -> string -> bool Pervasives.ref -> bool Pervasives.ref
observe_bool_ref n b
monitors a boolean reference b
.
val observe_string_ref : ?period:int -> string -> string Pervasives.ref -> string Pervasives.ref
observe_string_ref n s
monitors a string reference s
.