package liquidsoap-lang

  1. Overview
  2. Docs
type t = {
  1. total_time : float;
    (*

    Time spent in the function.

    *)
  2. self_time : float;
    (*

    Time spent in the function excluding children.

    *)
}

Function call information.

val calls : (string * t) list Stdlib.ref
val stack : string list Stdlib.ref
val children : float Stdlib.ref list Stdlib.ref
val add : string -> t -> unit

Indicate the time spent in a given function.

val time : string -> ('a -> 'b) -> 'a -> 'b

Measure time for a given function.

module M : sig ... end
val stats : unit -> string
OCaml

Innovation. Community. Security.