Skip to content

Ppx rewriter that records top-level module startup times

License

Notifications You must be signed in to change notification settings

ocaml-wasm/ppx_module_timer

 
 

Repository files navigation

ppx_module_timer

A ppx extension to record module startup times.

Modules using ppx_module_timer (included in ppx_jane_kernel) now have instrumentation to record their startup time. If the environment variable PPX_MODULE_TIMER is set (to anything), each module records its startup time, and before exiting the process prints out all of the module times in the order they occurred.

If a file contains [@@@ppx_module_timer.pay_overhead_to_time_individual_definitions], the individual definitions will be timed (at the cost of some minor extra overhead.)

About

Ppx rewriter that records top-level module startup times

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 80.8%
  • JavaScript 12.1%
  • WebAssembly 4.3%
  • C 1.7%
  • Other 1.1%