-
Notifications
You must be signed in to change notification settings - Fork 0
/
PerformanceObserverEntryList.cljs
64 lines (44 loc) · 2.22 KB
/
PerformanceObserverEntryList.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
(ns web.performance.PerformanceObserverEntryList
"The PerformanceObserverEntryList interface is a list of peformance
that were explicitly observed via the `observe()` method."
(:refer-clojure :exclude []))
(defn get-entries
"Method.
The getEntries() method of the `web.performance.PerformanceObserverEntryList`
returns a list of explicitly observed performance entry objects
a given filter. The list's members are determined by the set
entry types specified in the call to the `observe()` method.
list is available in the observer's callback function (as the
parameter in the callback).
`General syntax:
entries = list.getEntries();
entries = list.getEntries(PerformanceEntryFilterOptions);
Specific usage:
entries = list.getEntries({name: \\\"entry_name\\\", entryType: \\\"mark\\\"});`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries`"
[this & args]
(-> this .-getEntries (.apply this (clj->js args))))
(defn get-entries-by-type
"Method.
The getEntriesByType() method of the `web.performance.PerformanceObserverEntryList`
a list of explicitly observed performance entry objects for a
performance entry type. The list's members are determined by
set of entry types specified in the call to the `observe()` method.
list is available in the observer's callback function (as the
parameter in the callback).
`entries = list.getEntriesByType(type);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByType`"
[this type]
(-> this (.getEntriesByType type)))
(defn get-entries-by-name
"Method.
The getEntriesByName() method of the `web.performance.PerformanceObserverEntryList`
returns a list of explicitly observed performance entry objects
a given `name` and `entry type`. The list's members are determined
the set of entry types specified in the call to the `observe()`
The list is available in the observer's callback function (as
first parameter in the callback).
`entries = list.getEntriesByName(name, type);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName`"
[this name type]
(-> this (.getEntriesByName name type)))