package lambdapi

  1. Overview
  2. Docs

Helper functions for debugging. *

module D : sig ... end

Printing functions.

Logging function for command handling.

val log_hndl : 'a Lplib.Base.outfmt -> 'a
val time_of : string -> (unit -> 'b) -> 'b

time_of f x computes f x and prints the time for computing it.

val do_record_time : bool Stdlib.ref

To record time with record_time.

val do_print_time : bool Stdlib.ref
type task =
  1. | Lexing
  2. | Parsing
  3. | Scoping
  4. | Rewriting
  5. | Typing
  6. | Solving
  7. | Reading
  8. | Sharing
  9. | Writing
val index : task -> int
val nb_tasks : int
val task_name : Stdlib.Format.formatter -> int -> unit
val record_time : task -> (unit -> unit) -> unit

record_time s f records under s the time spent in calling f. print_time () outputs the recorded times.

val print_time : float -> unit -> unit

record_time s f records under s the time spent in calling f. print_time () outputs the recorded times.

val stream_iter : ('a -> unit) -> 'a Stream.t -> unit

stream_iter f s is the same as Stream.iter f s but records the time in peeking the elements of the stream.

OCaml

Innovation. Community. Security.