package js_of_ocaml

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

PerformanceObserver API

A code example:

if (PerformanceObserver.is_supported()) then
  let entry_types = [ "measure" ] in
  let f entries observer =
    let entries = entries##getEntries in
    Firebug.console##debug entries ;
    Firebug.console##debug observer
  in
  PerformanceObserver.observe ~entry_types ~f
  ()
class type performanceObserverInit = object ... end
class type performanceEntry = object ... end
class type performanceObserverEntryList = object ... end
class type performanceObserver = object ... end
val is_supported : unit -> bool
val observe : entry_types:string list -> f:(performanceObserverEntryList Js.t -> performanceObserver Js.t -> unit) -> performanceObserver Js.t