module Profiler:sig..end
Performance profiling
The underlying Sundials library must be built with
SUNDIALS_BUILD_WITH_PROFILING set to on. Profiling is
light-weight but can still reduce performance.
The SUNPROFILER_PRINT environment variable determines whether
profiler information is printed when a context is freed (by the garbage
collector).
The profiling functions (silently) do nothing when profiling is not available.
typet =Profiler.t
A Sundials profiler.
val enabled : boolIndicates whether the underlying library was built with profiling enabled.
val make : string -> tCreates a new profiler with the given name.
val start : t -> string -> unitStarts timing the region indicated by the given name.
val finish : t -> string -> unitEnds timing the region indicated by the given name.
val print : t -> Sundials.Logfile.t -> unitPrints out a profiling summary.