package rocq-runtime
Install
Dune Dependency
Authors
Maintainers
Sources
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be
doc/rocq-runtime.lib/NewProfile/index.html
Module NewProfile
Source
val profile :
string ->
?args:(unit -> (string * MiniJson.t) list) ->
(unit -> 'a) ->
unit ->
'a
Profile the given function.
args
is called only if profiling is active, it is used to produce additional annotations.
Profiling must not be active. Activates profiling with a fresh state.
Profiling must be active. Deactivates profiling.
Profiling state accumulator.
Returns None
if profiling is inactive. Deactivates profiling if it is active, returning the current state.
Profiling must not be active. Activates profiling with the given state.
Timings for sub-events: for each event, how long it took and how many times it was called.
Runs the given function with profiling active and returns the produced events and sum times of subevents.
Profiling must be active. Outputs the given events and includes the sum times in the current event.
Pretty print a time given in seconds using smaller units as needed.
Custom outputs
Output header for profile files
Output footer for profile files and flushes the formatter.