mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-25 05:18:56 +00:00

# new doc style (1/2) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@220086 c90b9560-bf6c-de11-be94-00142212c4b1
77 lines
2.1 KiB
XML
77 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.3 $ -->
|
|
<refentry id="function.apd-set-session-trace">
|
|
<refnamediv>
|
|
<refname>apd_set_session_trace</refname>
|
|
<refpurpose>Starts the session debugging</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>apd_set_session_trace</methodname>
|
|
<methodparam><type>int</type><parameter>debug_level</parameter></methodparam>
|
|
<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>
|
|
debug_level is an integer which is formed by adding together the following
|
|
values:
|
|
</para>
|
|
<para>
|
|
<programlisting role="script">
|
|
<![CDATA[
|
|
FUNCTION_TRACE 1
|
|
ARGS_TRACE 2
|
|
ASSIGNMENT_TRACE 4
|
|
STATEMENT_TRACE 8
|
|
MEMORY_TRACE 16
|
|
TIMING_TRACE 32
|
|
SUMMARY_TRACE 64
|
|
]]>
|
|
</programlisting>
|
|
</para>
|
|
<para>
|
|
I would seriously not recommend using MEMORY_TRACE. It is very slow and
|
|
does not appear to be accurate (great, huh?) also ASSIGNMENT_TRACE is not
|
|
implemented. So, to turn on all functional traces (TIMING, FUNCTIONS, ARGS
|
|
SUMMARY (like strace -c)) use the value 99
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title><function>apd_set_session_trace</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
apd_set_session_trace(99);
|
|
?>
|
|
]]>
|
|
</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
|
|
-->
|