From f9599e38ba438ab7fd5df1bfb63ef2bae0329bfb Mon Sep 17 00:00:00 2001 From: Anthony Bedford Date: Mon, 15 Nov 2010 16:10:25 +0000 Subject: [PATCH] Added information on mysqlnd.debug option format string, and new profiling option. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305372 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqlnd/config.xml | 105 +++++++++++++++++++++++++++++++++-- 1 file changed, 101 insertions(+), 4 deletions(-) diff --git a/reference/mysqlnd/config.xml b/reference/mysqlnd/config.xml index 95cc4c62bb..09a5807726 100644 --- a/reference/mysqlnd/config.xml +++ b/reference/mysqlnd/config.xml @@ -109,14 +109,111 @@ - mysqlnd.debug boolean + mysqlnd.debug string - Records everything from all extensions using - mysqlnd. Only available with a debug build of - PHP. + Records communication from all extensions using + mysqlnd to the specified log file. + + The format of the directive is mysqlnd.debug = + "option1[,parameter_option1][:option2[,parameter_option2]]". + + + The options for the format string are as follows: + + + + + A[,file] - Appends trace output to specified file. Also ensures + that data is written after each write. This is done by closing + and reopening the trace file (this is slow). It helps ensure a + complete log file should the application crash. + + + + + a[,file] - Appends trace output to the specified file. + + + + + d - Enables output from DBUG_<N> macros for the current + state. May be followed by a list of keywords which selects + output only for the DBUG macros with that keyword. An empty list + of keywords implies output for all macros. + + + + + f[,functions] - Limits debugger actions to the specified list of + functions. An empty list of functions implies that all functions + are selected. + + + + + F - Marks each debugger output line with the name of the source + file containing the macro causing the output. + + + + + i - Marks each debugger output line with the PID of the current + process. + + + + + L - Marks each debugger output line with the name of the source + file line number of the macro causing the output. + + + + + n - Marks each debugger output line with the current function + nesting depth + + + + + o[,file] - Similar to a[,file] but overwrites old file, and does + not append. + + + + + O[,file] - Similar to A[,file] but overwrites old file, and does + not append. + + + + + t[,N] - Enables function control flow tracing. The maximum + nesting depth is specified by N, and defaults to 200. + + + + + x - This option activates profiling. + + + + + Example: + + +d:t:x:O,/tmp/mysqlnd.trace + + + + This feature is only available with a debug build of PHP. Works + on Microsoft Windows if using a debug build of PHP and PHP was + built using Microsoft Visual C version 9 and above. + + +