-
Notifications
You must be signed in to change notification settings - Fork 0
/
PerformanceFrameTiming.cljs
105 lines (72 loc) · 2.69 KB
/
PerformanceFrameTiming.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
(ns web.performance.PerformanceFrameTiming
"PerformanceFrameTiming is an abstract interface that provides
timing data about the browser's event loop."
(:refer-clojure :exclude [name]))
(defn entry-type
"Property.
The entryType property returns a `web.dom.DOMString` representing
type of performance metric such as, for example, \\\"mark\\\". This
is read only.
`var type = entry.entryType;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType`"
[this]
(-> this (.-entryType)))
(defn set-entry-type!
"Property.
The entryType property returns a `web.dom.DOMString` representing
type of performance metric such as, for example, \\\"mark\\\". This
is read only.
`var type = entry.entryType;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType`"
[this val]
(aset this "entryType" val))
(defn name
"Property.
The name property of the `web.performance.PerformanceEntry` interface
a value that further specifies the value returned by the `PerformanceEntry.entryType`
This property is read only.
`var name = entry.name;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name`"
[this]
(-> this (.-name)))
(defn set-name!
"Property.
The name property of the `web.performance.PerformanceEntry` interface
a value that further specifies the value returned by the `PerformanceEntry.entryType`
This property is read only.
`var name = entry.name;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name`"
[this val]
(aset this "name" val))
(defn start-time
"Property.
The startTime property returns the first recorded `timestamp`
the `performance entry`.
`entry.startTime;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime`"
[this]
(-> this (.-startTime)))
(defn set-start-time!
"Property.
The startTime property returns the first recorded `timestamp`
the `performance entry`.
`entry.startTime;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime`"
[this val]
(aset this "startTime" val))
(defn duration
"Property.
The duration property returns a `timestamp` that is the duration
the `performance entry`.
`entry.duration;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration`"
[this]
(-> this (.-duration)))
(defn set-duration!
"Property.
The duration property returns a `timestamp` that is the duration
the `performance entry`.
`entry.duration;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration`"
[this val]
(aset this "duration" val))