package core_profiler

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Time_ns and Time represents time since 1970 (the unix epoch). When writing out perf mertics, we don't have enough bits to express nanos since the unix epch. Instead we record an arbitrary point of time as the Profiler_epoch.t. Times can be stored with respect to this epoch.

In the offline protocol, in order to save space in the header, an 'epoch' is written to the header, and times are stored as an offset from this epoch. (See also: Protocol.Short_header)

type t
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val of_time : Core.Time_ns.t -> t
val to_time : t -> Core.Time_ns.t
val of_int : int -> t
val to_int : t -> int
val to_string : t -> string
OCaml

Innovation. Community. Security.