Skip to content

Commit 1ee7b40

Browse files
committed
Add some docs
1 parent cbc769f commit 1ee7b40

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dom/src/main/scala/org/scalajs/dom/PerformanceEntry.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,26 @@ package org.scalajs.dom
99
import scala.scalajs.js
1010
import scala.scalajs.js.annotation._
1111

12+
/** Encapsulates a single performance metric that is part of the browser's performance timeline. */
1213
@js.native
1314
@JSGlobal
1415
class PerformanceEntry extends js.Object {
16+
17+
/** The name for a performance entry. It acts as an identifier, but it does not have to be unique. The value depends
18+
* on the subclass.
19+
*/
1520
def name: String = js.native
1621

22+
/** The first timestamp recorded for this performance entry. The meaning of this property depends on the value of this
23+
* entry's [[entryType]].
24+
*/
1725
def startTime: Double = js.native
1826

27+
/** The duration of the performance entry. The meaning of this property depends on the value of this entry's
28+
* [[entryType]].
29+
*/
1930
def duration: Int = js.native
2031

32+
/** The type of performance metric that this entry represents. */
2133
def entryType: String = js.native
2234
}

0 commit comments

Comments
 (0)