package ppx_module_timer
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=32b90c4b49abbc71463d01928fe731319cdd452f89e59ed3e8cb6ebad168cf43
md5=16262567123c81beeadaa884e53722bd
doc/ppx_module_timer.runtime/Ppx_module_timer_runtime/index.html
Module Ppx_module_timer_runtime
val am_recording : Base.boolIf 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.stringIf this environment variable is set (to anything) when this module starts up, am_recording is set to true.
Equal to "PPX_MODULE_TIMER".
module Startup_time : sig ... endval print_recorded_startup_times :
(Startup_time.t Base.list -> Base.unit) Base.refIf am_recording, called at process exit. The list is given in chronological order.
The default callback prints each module name and startup time in the order given. To provide deterministic behavior in tests, if am_recording_environment_variable has the format of a time span, each recorded startup time is printed as a successive increment of that value.
Core_kernel overrides the default callback. The override formats the spans using Time_ns.Span.to_string_hum. It also accepts sexp lists of span*string pairs in am_recording_environment_variable to replace all recorded values.
val gc_events_suffix_string : Startup_time.Gc_events.t -> Base.stringIf all gc event counts are zero, the empty string. Otherwise a string such as: "; GC: 2 minor collections, 1 major collections"