package rocq-runtime
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=051f7bf702ff0a3b370449728921e5a95e18bc2b31b8eb949d48422888c98af4
doc/rocq-runtime.lib/NewProfile/index.html
Module NewProfileSource
val profile :
string ->
?args:(unit -> (string * MiniJson.t) list) ->
(unit -> 'a) ->
unit ->
'aProfile 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.