package core_profiler

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

Reads profiler data stored in a file and filters them appropriately

type timer_path = {
  1. interest : Core_profiler.Probe_id.t Interest.Raw.t;
  2. time : Core.Time_ns.t;
  3. time_delta : Core.Time_ns.Span.t;
}
val sexp_of_timer_path : timer_path -> Ppx_sexp_conv_lib.Sexp.t
val timer_path_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> timer_path
val compare_timer_path : timer_path -> timer_path -> int
type probe_path = {
  1. interest : Core_profiler.Probe_id.t Interest.Raw.t;
  2. time : Core.Time_ns.t;
  3. time_delta : Core.Time_ns.Span.t;
  4. value : int;
  5. delta : int;
}
val sexp_of_probe_path : probe_path -> Ppx_sexp_conv_lib.Sexp.t
val probe_path_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> probe_path
val compare_probe_path : probe_path -> probe_path -> int
val sexp_of_event : event -> Ppx_sexp_conv_lib.Sexp.t
val event_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> event
val compare_event : event -> event -> int
val event_time : event -> Core.Time_ns.t

A t emits (via iter_events) all events that match the list of raw interests provided. The source of the event is identified by passing the raw interest inside the event; interests are hashable and comparable.

val iter_events : t -> f:(event -> unit) -> unit