123456789101112131415161718# 1 "lib/instr.perf.ml"(************************************************************************)(* * The Coq Proof Assistant / The Coq Development Team *)(* v * Copyright INRIA, CNRS and contributors *)(* <O___,, * (see version control and CREDITS file for authors & dates) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)letread_counter:unit->(Int64.t,string)Result.t=letdrop()=tryPerf.drop()withFailure(_)->()intryPerf.init();at_exitdrop;fun()->tryOk(Perf.peek())withFailure(msg)->Error(msg)withFailure(msg)->fun()->Error(msg)