Performance

Overview

The Performance interface provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.

Location

Required Methods


clearMarks

Removes the given mark from the browser's performance entry buffer.

 

method clearMarks

 

void clearMarks()

 

func clearMarks()

 

void clearMarks()

 

Sub clearMarks()

clearMeasures

Removes the given measure from the browser's performance entry buffer.

 

method clearMeasures

 

void clearMeasures()

 

func clearMeasures()

 

void clearMeasures()

 

Sub clearMeasures()

getEntries

Returns a list of PerformanceEntry objects based on the given filter.

 

method getEntries: array of PerformanceEntry

 

PerformanceEntry[] getEntries()

 

func getEntries() -> PerformanceEntry...

 

PerformanceEntry[] getEntries()

 

Function getEntries() As PerformanceEntry()

getEntriesByName

Returns a list of PerformanceEntry objects based on the given name and entry type.

 

method getEntriesByName(parname: dynamic; partype: dynamic): array of PerformanceEntry

 

PerformanceEntry[] getEntriesByName(dynamic parname, dynamic partype)

 

func getEntriesByName(_ parname: dynamic, _ partype: dynamic) -> PerformanceEntry...

 

PerformanceEntry[] getEntriesByName(dynamic parname, dynamic partype)

 

Function getEntriesByName(parname As dynamic, partype As dynamic) As PerformanceEntry()

Parameters:

  • parname:
  • partype:

getEntriesByType

Returns a list of PerformanceEntry objects of the given entry type.

 

method getEntriesByType(partype: dynamic): array of PerformanceEntry

 

PerformanceEntry[] getEntriesByType(dynamic partype)

 

func getEntriesByType(_ partype: dynamic) -> PerformanceEntry...

 

PerformanceEntry[] getEntriesByType(dynamic partype)

 

Function getEntriesByType(partype As dynamic) As PerformanceEntry()

Parameters:

  • partype:

mark

Creates a timestamp in the browser's performance entry buffer with the given name.

 

method mark(parname: dynamic): DateTime

 

DateTime mark(dynamic parname)

 

func mark(_ parname: dynamic) -> DateTime

 

DateTime mark(dynamic parname)

 

Function mark(parname As dynamic) As DateTime

Parameters:

  • parname:

measure

Creates a named timestamp in the browser's performance entry buffer between two specified marks (known as the start mark and end mark, respectively).

 

method measure(parname: dynamic): DateTime

 

DateTime measure(dynamic parname)

 

func measure(_ parname: dynamic) -> DateTime

 

DateTime measure(dynamic parname)

 

Function measure(parname As dynamic) As DateTime

Parameters:

  • parname:

now

Returns a DOMHighResTimeStamp representing the number of milliseconds elapsed since a reference instant.

 

method now: Int64

 

Int64 now()

 

func now() -> Int64

 

Int64 now()

 

Function now() As Int64

toJSON

Is a jsonizer returning a json object representing the Performance object.

 

method toJSON: dynamic

 

dynamic toJSON()

 

func toJSON() -> dynamic

 

dynamic toJSON()

 

Function toJSON() As dynamic