Js_of_ocaml.PerformanceObserver
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 performanceObserver :
((performanceObserverEntryList Js.t ->
performanceObserver Js.t ->
unit)
Js.callback ->
performanceObserver Js.t)
Js.constr
val observe :
entry_types:string list ->
f:(performanceObserverEntryList Js.t -> performanceObserver Js.t -> unit) ->
performanceObserver Js.t