Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. Window
  4. Window.performance

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

Window.performance

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since сентябрь 2015 г..

The Web Performance API allows web pages access to certain functions for measuring the performance of web pages and web applications, including theNavigation Timing API and high-resolution time data.

Methods

performance.mark()

Maps aDOMHighResTimeStamp to a specified name representing the amount of milliseconds elapsed since a reference instant.

performance.now()

ВозвращаетDOMHighResTimeStamp представляющий количество миллисекунд прошедшее с момента отсчёта.

measure()

This method stores theDOMHighResTimeStamp 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

Is aPerformanceTiming object containing latency-related performance information.

performance.navigation

Is aPerformanceNavigation 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.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp