package core_profiler

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

Module Core_profiler.Profiler_epochSource

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)

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