1995-09-14 04:53:55 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-09-14 04:53:55 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1995-09-14 04:53:55 -07:00
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
(* The "trace" facility *)
|
|
|
|
|
|
|
|
type traced_function =
|
|
|
|
{ path: Path.t;
|
|
|
|
closure: Obj.t;
|
|
|
|
initial_closure: Obj.t;
|
|
|
|
instrumented_fun: Obj.t }
|
|
|
|
|
|
|
|
val traced_functions: traced_function list ref
|
1996-04-29 06:24:01 -07:00
|
|
|
val is_traced: Obj.t -> Path.t option
|
1995-09-14 04:53:55 -07:00
|
|
|
val copy_closure: Obj.t -> Obj.t
|
|
|
|
val overwrite_closure: Obj.t -> Obj.t -> unit
|
1996-09-23 04:32:19 -07:00
|
|
|
val instrument_closure:
|
|
|
|
Env.t -> Longident.t -> Types.type_expr -> Obj.t -> Obj.t
|
1995-09-14 04:53:55 -07:00
|
|
|
val print_trace: Obj.t -> Obj.t -> Obj.t
|