package catapult

  1. Overview
  2. Docs

Module Catapult_utils.Gc_statsSource

Sourceval set_gc_interval_us : float -> unit

Set the interval, in microseconds, between 2 successive gathering of GC statistics, to be emitted as catapult counters.

Sourceval maybe_emit : now:float -> pid:int -> unit -> unit

This checks whether it has been long enough since we last emitted counters for the GC. If it has, then it emits the event and resets the clock.

  • parameter pid

    PID of the current process

OCaml

Innovation. Community. Security.