Packages

c

org.scalajs.dom

Performance

class Performance extends Object

An object of this type can be obtained by calling the Window.performance read-only attribute.

An object of this type can be obtained by calling the Window.performance read-only attribute.

Annotations
@JSType() @native() @JSGlobal()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Performance
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clearMarks(markName: String = js.native): Unit

    Removes all or specific PerformanceMark objects from the browser's performance timeline.

  6. def clearMeasures(measureName: String = js.native): Unit

    Removes all or specific PerformanceMeasure objects from the browser's performance timeline.

  7. def clearResourceTimings(): Unit

    Removes all performance entries with an entryType of "resource" from the browser's performance timeline and sets the size of the performance resource data buffer to zero.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getEntries(): Array[PerformanceEntry]

    All PerformanceEntry objects currently present in the performance timeline.

  14. def getEntriesByName(name: String, type: String = js.native): Array[PerformanceEntry]

    Returns an array of PerformanceEntry objects currently present in the performance timeline with the given name and type.

  15. def getEntriesByType(entryType: String): Array[PerformanceEntry]

    Returns an array of PerformanceEntry objects currently present in the performance timeline for a given type

  16. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  20. def mark(markName: String): PerformanceMark

    Creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.

  21. def measure(measureName: String, startMarkName: String = js.native, endMarkName: String = js.native): PerformanceMeasure

    Creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.

  22. def navigation: PerformanceNavigation

    The Performance.navigation read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def now(): Double

    Returns a DOMHighResTimeStamp representing the amount of milliseconds elapsed since the start of the navigation, as give by PerformanceTiming.navigationStart to the call of the method.

  27. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  28. def setResourceTimingBufferSize(maxSize: Int): Unit

    Sets the desired size of the browser's resource timing buffer which stores the "resource" performance entries.

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def timing: PerformanceTiming

    The Performance.timing read-only property returns a PerformanceTiming object containing latency-related performance information.

  31. def toJSON(): Object

    Returns a JSON representation of the Performance object.

  32. def toLocaleString(): String
    Definition Classes
    Object
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def valueOf(): Any
    Definition Classes
    Object
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def getMarks(markName: String = js.native): Dynamic
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) No such API in the spec

  2. def getMeasures(measureName: String = js.native): Dynamic
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) No such API in the spec

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped