Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/lib/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 2 kB image not shown  

Quelle  newProfile.mli   Sprache: SML

 
(************************************************************************)
(*         *      The Rocq Prover / The Rocq 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)         *)
(************************************************************************)

module MiniJson : sig
  (** Subtype of Yojson.Safe.t *)
  type t = [
    | `Intlit of string
    | `String of string
    | `Assoc of (string * t) list
    | `List of t list
  ]

  val pr : Format.formatter -> t -> unit
end

module Counters : sig
  type t

  val get : unit -> t

  val zero : t

  val (+) : t -> t -> t

  val (-) : t -> t -> t

  val print : t -> Pp.t
end

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.
*)


val is_profiling : unit -> bool

type settings =
  { output : Format.formatter;
    fname : string;
  }

val init : settings -> unit
(** Profiling must not be active.
    Activates profiling with a fresh state. *)


val finish : unit -> unit
(** Profiling must be active.
    Deactivates profiling. *)


type accu
(** Profiling state accumulator. *)

val pause : unit -> accu option
(** Returns [None] if profiling is inactive.
    Deactivates profiling if it is active, returning the current state. *)


val resume : accu -> unit
(** Profiling must not be active.
    Activates profiling with the given state. *)


type sums = (float * int) CString.Map.t
(** Timings for sub-events: for each event, how long it took and how many times it was called. *)

val empty_sums : sums

val sums_union : sums -> sums -> sums

val with_profiling : (unit -> 'a) -> MiniJson.t list * sums * 'a
(** Runs the given function with profiling active and returns the
    produced events and sum times of subevents. *)


val insert_results : MiniJson.t list -> sums -> unit
(** Profiling must be active.
    Outputs the given events and includes the sum times in the current event. *)


val pptime : Format.formatter -> float -> unit
(** Pretty print a time given in seconds using smaller units as needed. *)

(** Custom outputs *)

val format_header : Format.formatter -> unit
(** Output header for profile files *)

val format_footer : Format.formatter -> unit
(** Output footer for profile files and flushes the formatter. *)

100%


¤ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.