diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/performance/内存/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/performance/内存/index.html')
-rw-r--r-- | files/zh-cn/web/api/performance/内存/index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/performance/内存/index.html b/files/zh-cn/web/api/performance/内存/index.html new file mode 100644 index 0000000000..e9f5047d4e --- /dev/null +++ b/files/zh-cn/web/api/performance/内存/index.html @@ -0,0 +1,42 @@ +--- +title: Performance.memory +slug: Web/API/Performance/内存 +translation_of: Web/API/Performance/memory +--- +<p>{{APIRef}}</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>timingInfo</em> = <em>performance</em>.memory</pre> + +<h2 id="属性">属性</h2> + +<dl> + <dt><code>jsHeapSizeLimit</code></dt> + <dd>上下文内可用堆的最大体积,以字节计算。</dd> + <dt><code>totalJSHeapSize</code></dt> + <dd> 已分配的堆体积,以字节计算。</dd> +</dl> + +<dl> + <dt><code>usedJSHeapSize</code></dt> + <dd>当前 JS 堆活跃段(segment)的体积,以字节计算。</dd> +</dl> + +<h2 id="规范">规范</h2> + +<p>无。</p> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> + + +<p>{{Compat("api.Performance.memory")}}</p> +</div> + +<h2 id="查看更多">查看更多</h2> + +<ul> + <li>属于 {{domxref("Performance")}} 接口。</li> +</ul> |