blob: 3264ca61f3ef86a3c0d10ec2a2b4d87db08a9789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
(***********************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *)
(* \VV/ *************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(***********************************************************************)
(** {6 Physical size of an ocaml value.}
These functions explore objects recursively and may allocate a lot. *)
val size : 'a -> int
(** Physical size of an object in words. *)
val size_b : 'a -> int
(** Same as [size] in bytes. *)
val size_kb : 'a -> int
(** Same as [size] in kilobytes. *)
(** {6 Logical size of an OCaml value.} *)
val obj_stats : 'a -> int * int * int
(** Return the (logical) value size, the string size, and the maximum depth of
the object. This loops on cyclic structures. *)
(** {6 Total size of the allocated ocaml heap. } *)
val heap_size : unit -> int
(** Heap size, in words. *)
val heap_size_kb : unit -> int
(** Heap size, in kilobytes. *)
|