Window.performance
The Web Performance API allows web pages access to certain functions for measuring the performance of web pages and web applications, including the Navigation Timing (en-US) API and high-resolution time data.
Methods
performance.mark()
(en-US)-
Maps a
DOMHighResTimeStamp
to a specified name representing the amount of milliseconds elapsed since a reference instant. performance.now()
-
Возвращает
DOMHighResTimeStamp
представляющий количество миллисекунд прошедшее с момента отсчёта. measure()
-
This method stores the
DOMHighResTimeStamp
duration between two marks along with the associated name (a "measure"). getEntriesByType()
-
…
getEntriesByType()
-
…
getEntriesByName()
-
…
clearMarks()
-
If the markName argument is not specified, this method removes all marks and their associated DOMHighResTimeStamp time values.
If the markName argument is specified, this method removes all DOMHighResTimeStamp time values for the given mark name.
If the markName argument is specified but the specified markName does not exist, this method will do nothing.
Properties
performance.timing
(en-US)-
Is a
PerformanceTiming
(en-US) object containing latency-related performance information. -
Is a
PerformanceNavigation
(en-US) object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource. - performance.memory
-
A non-standard extension added in Chrome.