package js_of_ocaml

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

Module Js_of_ocaml.PerformanceObserverSource

PerformanceObserver API

A code example:

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

Innovation. Community. Security.