package hack_parallel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module SharedMemSource

* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *

Sourcetype config = {
  1. global_size : int;
  2. heap_size : int;
  3. dep_table_pow : int;
  4. hash_table_pow : int;
  5. shm_dirs : string list;
  6. shm_min_avail : int;
  7. log_level : int;
}
Sourcetype handle = private {
  1. h_fd : Unix.file_descr;
  2. h_global_size : int;
  3. h_heap_size : int;
}
Sourceexception Out_of_shared_memory
Sourceexception Hash_table_full
Sourceexception Dep_table_full
Sourceexception Heap_full
Sourceexception Sql_assertion_failure of int
Sourceexception C_assertion_failure of string
Sourceval init : config -> handle
Sourceval connect : handle -> unit
Sourceval collect : [ `gentle | `aggressive | `always_TEST ] -> unit
Sourceval init_done : unit -> unit
Sourceval save_dep_table_sqlite : string -> string -> int
Sourceval load_dep_table_sqlite : string -> bool -> int
Sourceval save_table : string -> unit
Sourceval load_table : string -> unit
Sourceval save_table_sqlite : string -> int
Sourceval save_table_keys_sqlite : string -> string array -> int
Sourceval load_table_sqlite : string -> bool -> int
Sourceval cleanup_sqlite : unit -> unit
Sourceval heap_size : unit -> int
Sourceval wasted_heap_size : unit -> int
Sourcetype table_stats = {
  1. nonempty_slots : int;
  2. used_slots : int;
  3. slots : int;
}
Sourceval dep_stats : unit -> table_stats
Sourceval hash_stats : unit -> table_stats
Sourceval is_heap_overflow : unit -> bool
Sourceval invalidate_caches : unit -> unit
Sourceval value_size : Obj.t -> int
Sourcemodule type NoCache = sig ... end
Sourcemodule type WithCache = sig ... end
Sourcemodule type UserKeyType = sig ... end
Sourcemodule type CacheType = sig ... end
OCaml

Innovation. Community. Security.