type t = {mutable minor_heap_size : Core_kernel__.Import.int; | (** The size (in words) of the minor heap. Changing this parameter will trigger a minor collection. Default: 262144 words / 1MB (32bit) / 2MB (64bit). *) |
mutable major_heap_increment : Core_kernel__.Import.int; | (** The minimum number of words to add to the major heap when increasing it. Default: 126976 words / 0.5MB (32bit) / 1MB (64bit). *) |
mutable space_overhead : Core_kernel__.Import.int; | (** The major GC speed is computed from this parameter.
This is the memory that will be "wasted" because the GC does not
immediatly collect unreachable blocks. It is expressed as a
percentage of the memory used for live data.
The GC will work more (use more CPU time and collect
blocks more eagerly) if Default: 80. *) |
mutable verbose : Core_kernel__.Import.int; | (** This value controls the GC messages on standard error output. It is a sum of some of the following flags, to print messages on the corresponding events:
Default: 0. *) |
mutable max_overhead : Core_kernel__.Import.int; | (** Heap compaction is triggered when the estimated amount
of "wasted" memory is more than Default: 500. *) |
mutable stack_limit : Core_kernel__.Import.int; | (** The maximum size of the stack (in words). This is only relevant to the byte-code runtime, as the native code runtime uses the operating system's stack. Default: 1048576 words / 4MB (32bit) / 8MB (64bit). *) |
mutable allocation_policy : Core_kernel__.Import.int; | (** The policy used for allocating in the heap. Possible values are 0 and 1. 0 is the next-fit policy, which is quite fast but can result in fragmentation. 1 is the first-fit policy, which can be slower in some cases but can be better for programs with fragmentation problems. Default: 0. *) |
window_size : Core_kernel__.Import.int; | (** The size of the window used by the major GC for smoothing out variations in its workload. This is an integer between 1 and 50. Default: 1.
*) |
}include sig ... endval bin_t : t Bin_prot.Type_class.tval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (Core_kernel__.Import.int ‑> t) Bin_prot.Read.readerval bin_reader_t : t Bin_prot.Type_class.readerval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_writer_t : t Bin_prot.Type_class.writerval bin_shape_t : Bin_prot.Shape.tval t_of_sexp : Base.Sexp.t ‑> tval sexp_of_t : t ‑> Base.Sexp.tval window_size : t ‑> Core_kernel__.Import.intval allocation_policy : t ‑> Core_kernel__.Import.intval set_allocation_policy : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitval stack_limit : t ‑> Core_kernel__.Import.intval set_stack_limit : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitval max_overhead : t ‑> Core_kernel__.Import.intval set_max_overhead : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitval verbose : t ‑> Core_kernel__.Import.intval set_verbose : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitval space_overhead : t ‑> Core_kernel__.Import.intval set_space_overhead : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitval major_heap_increment : t ‑> Core_kernel__.Import.intval set_major_heap_increment : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitval minor_heap_size : t ‑> Core_kernel__.Import.intval set_minor_heap_size : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unitmodule Fields : sig ... endinclude Comparable.S with type t := tinclude Core_kernel__.Comparable_intf.S_commoninclude Base.Comparable.Sinclude Base__.Comparable_intf.Polymorphic_compareascending is identical to compare. descending x y = ascending y x. These are
intended to be mnemonic when used like List.sort ~compare:ascending and List.sort
~cmp:descending, since they cause the list to be sorted in ascending or descending
order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that
between t' ~low:min ~high:max is true.
Raises if not (min <= max).
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.tinclude Base.Comparator.S with type t := tval comparator : (t, comparator_witness) Base.Comparator.comparatorinclude Base__.Comparable_intf.Validate with type t := tval validate_lbound : min:t Base.Maybe_bound.t ‑> t Base.Validate.checkval validate_ubound : max:t Base.Maybe_bound.t ‑> t Base.Validate.checkval validate_bound : min:t Base.Maybe_bound.t ‑> max:t Base.Maybe_bound.t ‑> t Base.Validate.checkmodule Replace_polymorphic_compare : Core_kernel__.Comparable_intf.Polymorphic_compare with type t := tmodule Map : Map.S with type Key.t = t with type Key.comparator_witness = comparator_witnessmodule Set : Set.S with type Elt.t = t with type Elt.comparator_witness = comparator_witness