diff options
Diffstat (limited to 'files/zh-cn/web/api/performance/memory/index.html')
-rw-r--r-- | files/zh-cn/web/api/performance/memory/index.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/performance/memory/index.html b/files/zh-cn/web/api/performance/memory/index.html new file mode 100644 index 0000000000..074295f951 --- /dev/null +++ b/files/zh-cn/web/api/performance/memory/index.html @@ -0,0 +1,43 @@ +--- +title: Performance.memory +slug: Web/API/Performance/memory +translation_of: Web/API/Performance/memory +original_slug: Web/API/Performance/内存 +--- +<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> |