mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Add coverage of pprof (apd_set_pprof_trace)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@169185 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2a41222512
commit
c18c6ea1da
2 changed files with 57 additions and 4 deletions
53
reference/apd/functions/apd-set-pprof-trace.xml
Normal file
53
reference/apd/functions/apd-set-pprof-trace.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.apd-set-pprof-trace">
|
||||
<refnamediv>
|
||||
<refname>apd_set_pprof_trace</refname>
|
||||
<refpurpose>Starts the session debugging</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>apd_set_pprof_trace</methodname>
|
||||
<methodparam choice="opt"><type>string</type><parameter>dump_directory</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Starts debugging to {dump_directory}/apd_dump_{process_id}, if
|
||||
dump_directory is not set, then the apd.dumpdir setting from the
|
||||
&php.ini; file is used.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>apd_set_pprof_trace</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
apd_set_pprof_trace();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<reference id="ref.apd">
|
||||
<title>Advanced PHP debugger</title>
|
||||
<titleabbrev>APD</titleabbrev>
|
||||
|
@ -34,7 +34,7 @@
|
|||
<para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
apd_set_session_trace(9);
|
||||
apd_set_pprof_trace();
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
@ -62,8 +62,8 @@ APD - Advanced PHP Debugger Trace File
|
|||
Process Pid (31994)
|
||||
Trace Begun at Fri Aug 10 16:37:45 2001
|
||||
---------------------------------------------------------------------------
|
||||
( 0.000000): apd_set_session_trace called at somewhere
|
||||
( 0.001482): apd_set_session_trace() returned. Elapsed (997475865.364909)
|
||||
( 0.000000): apd_set_pprof_trace called at somewhere
|
||||
( 0.001482): apd_set_pprof_trace() returned. Elapsed (997475865.364909)
|
||||
( 0.001563): getcwd() /opt/apache/htdocs/a.php:4
|
||||
( 0.001628): getcwd() returned. Elapsed (0.000065)
|
||||
( 0.001819): require() /opt/apache/htdocs/a.php:6
|
||||
|
|
Loading…
Reference in a new issue