package ppx_module_timer

  1. Overview
  2. Docs
Ppx rewriter that records top-level module startup times

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_module_timer-v0.14.0.tar.gz
sha256=bfe829afafcfb535febe2e16cceefcb4efd426b21060922437560e4de6df4711
md5=7ec9de2d5f07a1ceecdbefce0f0dea2c

doc/ppx_module_timer.runtime/Ppx_module_timer_runtime/index.html

Module Ppx_module_timer_runtime

val am_recording : Base.bool

If true, ppx_module_timer records module startup times and reports them on stdout at process exit. Controlled by am_recording_environment_variable.

val am_recording_environment_variable : Base.string

If this environment variable is set (to anything) when this module starts up, am_recording is set to true.

Equal to "PPX_MODULE_TIMER".

If this is set to a valid duration string (see Duration.format below), that duration is used to override recorded times for each module. This is used to make test output deterministic.

If this is set to "FAKE_MODULES", the entire set of recorded data is overridden with fake values. This is used to make test output both deterministic and stable, so that changes in external library dependencies do not affect it. The fake data is not particularly sensible, for example we are not careful to make the times for definitions add up to the time for the enclosing module.

module Duration : sig ... end
OCaml

Innovation. Community. Security.