diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/ru/web/api/window/performance | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/ru/web/api/window/performance')
-rw-r--r-- | files/ru/web/api/window/performance/index.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/files/ru/web/api/window/performance/index.html b/files/ru/web/api/window/performance/index.html new file mode 100644 index 0000000000..39e11ecbf8 --- /dev/null +++ b/files/ru/web/api/window/performance/index.html @@ -0,0 +1,48 @@ +--- +title: Window.performance +slug: Web/API/Window/performance +translation_of: Web/API/Window/performance +--- +<div>{{APIREf}}</div> + +<p>The Web Performance API allows web pages access to certain functions for measuring the performance of web pages and web applications, including the <a href="/en-US/docs/Navigation_timing">Navigation Timing </a>API and high-resolution time data.</p> + +<h2 id="Methods" name="Methods">Methods</h2> + +<dl> + <dt>{{domxref("Performance.mark()", "performance.mark()")}}</dt> + <dd>Maps a {{domxref("DOMHighResTimeStamp")}} to a specified name representing the amount of milliseconds elapsed since a reference instant.</dd> +</dl> + +<dl> + <dt>{{domxref("Performance.now()", "performance.now()")}}</dt> + <dd>Возвращает {{domxref("DOMHighResTimeStamp")}} представляющий количество миллисекунд прошедшее с момента отсчета.</dd> + <dt><code>measure()</code></dt> + <dd>This method stores the <a href="http://www.w3.org/TR/hr-time/#domhighrestimestamp"><code>DOMHighResTimeStamp</code></a> duration between two marks along with the associated name (a "measure").</dd> + <dt><strong><code>getEntriesByType()</code></strong></dt> + <dd> </dd> + <dt><strong><code>getEntriesByType()</code></strong></dt> + <dd> </dd> + <dt><strong><code>getEntriesByName()</code></strong></dt> + <dd> </dd> + <dt><code>clearMarks()</code></dt> + <dd> + <p>If the markName argument is not specified, this method removes all marks and their associated DOMHighResTimeStamp time values.</p> + + <p>If the markName argument is specified, this method removes all DOMHighResTimeStamp time values for the given mark name.</p> + + <p>If the markName argument is specified but the specified markName does not exist, this method will do nothing.<br> + </p> + </dd> +</dl> + +<h2 id="Properties" name="Properties">Properties</h2> + +<dl> + <dt>{{domxref("Performance.timing", "performance.timing")}}</dt> + <dd>Is a {{domxref("PerformanceTiming")}} object containing latency-related performance information.</dd> + <dt>{{domxref("Performance.navigation", "performance.navigation")}}</dt> + <dd>Is a {{domxref("PerformanceNavigation")}} object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.</dd> + <dt><a href="https://docs.webplatform.org/wiki/apis/timing/properties/memory">performance.memory</a></dt> + <dd>A non-standard extension added in Chrome.</dd> +</dl> |