uTools-Manuals/docs/php/xhprof_sample_enable.html
2019-04-28 19:00:34 +08:00

55 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>以采样模式启动 XHProf 性能分析</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.xhprof-sample-enable" class="refentry">
<div class="refnamediv">
<h1 class="refname">xhprof_sample_enable</h1>
<p class="verinfo">(PECL xhprof &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">xhprof_sample_enable</span> &mdash; <span class="dc-title">以采样模式启动 XHProf 性能分析</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.xhprof-sample-enable-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>xhprof_sample_enable</strong></span>
( <span class="methodparam">void</span>
) : <span class="type"><span class="type void">void</span></span></div>
<p class="para rdfs-comment">
<span class="function"><a href="xhprof_enable.html" class="function">xhprof_enable()</a></span> 的更轻量的版本,以采样模式开始性能分析。
抽样的间隔为 0.1 秒,样本记录了完整的函数调用堆栈。
主要使用的情况是以较低的性能开销来进行性能监控和诊断。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.xhprof-sample-enable-parameters">
<h3 class="title">参数</h3>
<p class="para">此函数没有参数。</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.xhprof-sample-enable-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
<strong><code>NULL</code></strong>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.xhprof-sample-enable-seealso">
<h3 class="title">参见</h3>
<ul class="simplelist">
<li class="member"><span class="function"><a href="xhprof_sample_disable.html" class="function" rel="rdfs-seeAlso">xhprof_sample_disable()</a> - 停止 xhprof 性能采样分析器</span></li>
<li class="member"><span class="function"><a href="xhprof_enable.html" class="function" rel="rdfs-seeAlso">xhprof_enable()</a> - 启动 xhprof 性能分析器</span></li>
<li class="member"><span class="function"><a href="memory_get_usage.html" class="function" rel="rdfs-seeAlso">memory_get_usage()</a> - 返回分配给 PHP 的内存量</span></li>
<li class="member"><span class="function"><a href="getrusage.html" class="function" rel="rdfs-seeAlso">getrusage()</a> - 获取当前资源使用状况</span></li>
</ul>
</div>
</div></div></div></body></html>