package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=5d1187d5e44ed0163f76fb12dabf012e
sha512=91bc81530fa4f6498961583ad51eac5001f139881788b88e360a866ad8e2a6e2c5bce86d1a580ab4cd4782bf49d48318767df82471ce33ba3ac143e5569ad33c
doc/coq-core.perf/Perf/index.html
Module Perf
Source
Global CPU instruction counter.
init ()
initialises, resets to 0, and starts the instruction counter. In case of an error, the Failure
exception is raised, and the counter state is fully re-initialised so that init
may be called again. Initialization is required prior to calling the drop
and peek
functions.
drop ()
undoes the effect of init
, and frees all resources used by the internal state of the instruction counter. Note that the counter must have been initialised before calling drop
, otherwise Failure
is raised.
peek ()
reads the value of the instruction counter, which corresponds to the number of instructions run by the CPU since the last (successful) call to init
. Note that Failure
is raised in case of an error, including if the function is called while the counter is not initialised.