<!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>Start XHProf profiling in sampling mode</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.xhprof-sample-disable.html">xhprof_sample_disable</a></div> <div class="next" style="text-align: right; float: right;"><a href="refs.utilspec.audio.html">Audio Formats Manipulation</a></div> <div class="up"><a href="ref.xhprof.html">Xhprof Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.xhprof-sample-enable" class="refentry"> <div class="refnamediv"> <h1 class="refname">xhprof_sample_enable</h1> <p class="verinfo">(PECL xhprof >= 0.9.0)</p><p class="refpurpose"><span class="refname">xhprof_sample_enable</span> — <span class="dc-title">Start XHProf profiling in sampling mode</span></p> </div> <div class="refsect1 description" id="refsect1-function.xhprof-sample-enable-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>xhprof_sample_enable</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Starts profiling in sample mode, which is a lighter weight version of <span class="function"><a href="function.xhprof-enable.html" class="function">xhprof_enable()</a></span>. The sampling interval is 0.1 seconds, and samples record the full function call stack. The main use case is when lower overhead is required when doing performance monitoring and diagnostics. </p> </div> <div class="refsect1 parameters" id="refsect1-function.xhprof-sample-enable-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-function.xhprof-sample-enable-returnvalues"> <h3 class="title">Return Values</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">See Also</h3> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.xhprof-sample-disable.html" class="function" rel="rdfs-seeAlso">xhprof_sample_disable()</a> - Stops xhprof sample profiler</span></li> <li class="member"> <span class="function"><a href="function.xhprof-enable.html" class="function" rel="rdfs-seeAlso">xhprof_enable()</a> - Start xhprof profiler</span></li> <li class="member"> <span class="function"><a href="function.memory-get-usage.html" class="function" rel="rdfs-seeAlso">memory_get_usage()</a> - Returns the amount of memory allocated to PHP</span></li> <li class="member"> <span class="function"><a href="function.getrusage.html" class="function" rel="rdfs-seeAlso">getrusage()</a> - Gets the current resource usages</span></li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.xhprof-sample-disable.html">xhprof_sample_disable</a></div> <div class="next" style="text-align: right; float: right;"><a href="refs.utilspec.audio.html">Audio Formats Manipulation</a></div> <div class="up"><a href="ref.xhprof.html">Xhprof Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>