aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/performance_property/index.html
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-09-30 00:53:33 +0000
committerMDN <actions@users.noreply.github.com>2021-09-30 00:53:33 +0000
commit9a06d5b4a3874caa094bff06895c892914eaea93 (patch)
tree1c9549ade620e59f4af4c5ee6b6ac7640bf4fcda /files/ru/web/api/performance_property/index.html
parent75e5dcce1e3c6558a3a2d3def5c08669404587c4 (diff)
downloadtranslated-content-9a06d5b4a3874caa094bff06895c892914eaea93.tar.gz
translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.tar.bz2
translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.zip
[CRON] sync translated content
Diffstat (limited to 'files/ru/web/api/performance_property/index.html')
-rw-r--r--files/ru/web/api/performance_property/index.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/files/ru/web/api/performance_property/index.html b/files/ru/web/api/performance_property/index.html
new file mode 100644
index 0000000000..74532dea94
--- /dev/null
+++ b/files/ru/web/api/performance_property/index.html
@@ -0,0 +1,49 @@
+---
+title: Window.performance
+slug: Web/API/performance_property
+translation_of: Web/API/Window/performance
+original_slug: 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>