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.16.0.tar.gz
sha256=2aee6ebec3dc3378a88a245a2c4f7c6314e96c377a02f390622c125bcef41f74

doc/ppx_module_timer.runtime/Ppx_module_timer_runtime/index.html

Module Ppx_module_timer_runtimeSource

Sourceval 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.

Sourceval 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.

Sourcemodule Duration : sig ... end
OCaml

Innovation. Community. Security.