cvs: phpdoc-zh /reference/apd configure.xml ini.xml reference.xml

From: Date: Sat, 11 Feb 2006 22:32:17 +0000
Subject: cvs: phpdoc-zh /reference/apd configure.xml ini.xml reference.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2787@lists.php.net to get a copy of this message
dallas Sat Feb 11 22:32:17 2006 UTC Added files: /phpdoc-zh/reference/apd configure.xml ini.xml reference.xml Log: Added.

http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apd/configure.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apd/configure.xml +++ phpdoc-zh/reference/apd/configure.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <section id="apd.installation"> &reftitle.install; <para> APD Ŀǰ×÷Ϊһ¸ö PECL À©Õ¹£¬¿ÉÒÔ´Ó <ulink url="&url.pecl.package;apd">&url.pecl.package;apd</ulink> µÃµ½¡£È·±£°²×°ÁË CGI °æµÄ PHP ²¢ÇÒÔÚµ±Ç°Ä¿Â¼Ï¿ÉÒÔÔËÐУ¬ÒÔ¼°¿ÉÒÔÔËÐÐ phpize ½Å±¾¡£ </para> <para> ÔËÐÐÒÔÏÂÃüÁîÒÔÏÂÔØ£¬±àÒë²¢°²×°×îÐÂÎȶ¨°æµÄ APD£º <screen> <![CDATA[ pear install apd ]]> </screen> </para> <para> Õ⽫×Ô¶¯°Ñ APD Zend À©Õ¹°²×°µ½ PHP À©Õ¹¿âĿ¼ÖС£²»ÊÇÒ»¶¨Òª·Åµ½ÄÇÀ¿ÉÒÔ½«´ËÄ£¿é´æ·Åµ½ÈκΠPHP ¿ÉÒÔ¶ÁÈ¡µÄĿ¼ÖУ¬Ö»ÒªÕýÈ·É趨ÁËÏàÓ¦µÄ zend_extension ²ÎÊý¼´¿É¡£ </para> <para> Windows Óû§¿ÉÒÔ´Ó <ulink url="&url.pecl.get.win;">&url.pecl.get.win;</ulink> ÏÂÔØÀ©Õ¹¿âµÄ DLL Îļþ <filename>php_apd.dll</filename>¡£ </para> <para> ÔÚ INI ÎļþÖУ¬¼ÓÈëÏÂÃæ¼¸ÐУº </para> <para> <programlisting role="php.ini"> <![CDATA[ zend_extension = /absolute/path/to/apd.so apd.dumpdir = /absolute/path/to/trace/directory apd.statement_tracing = 0 ]]> </programlisting> </para> <para> ¸ù¾Ý PHP °æ±¾£¬zend_extension Ö¸Áî¿ÉÒÔÊÇÒÔÏÂÖ®Ò»£º </para> <para> <programlisting role="script"> <![CDATA[ zend_extension (non ZTS, non debug build) zend_extension_ts ( ZTS, non debug build) zend_extension_debug (non ZTS, debug build) zend_extension_debug_ts ( ZTS, debug build) ]]> </programlisting> </para> </section> <section id="apd.installwin32"> <title>ÔÚ Win32 ϱàÒë</title> <para> ÒªÔÚ Windows ϱàÒë APD£¬ÐèÒªÒ»¸öÔÚ http://php.net/ ÖÐ˵Ã÷µÄ¿ÉÓà PHP ±àÒë»·¾³¡ª¡ª»ù±¾ÉÏ£¬ÐèÒªÓÐ Microsoft Visual C++£¬win32build.zip£¬bison/flex£¬ÒÔ¼°Ïà¹ØÖªÊ¶¡£ÁíÍâÈ·±£ adp.dsp ¾ßÓÐ DOS ÐнáÊø·û£¬Èç¹ûÊÇ Unix µÄÐнáÊø·û£¬Microsoft Visual C++ »á¾õµÃÓÐÎÊÌâ¡£ </para> </section> <!-- 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 --> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apd/ini.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apd/ini.xml +++ phpdoc-zh/reference/apd/ini.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <section id="apd.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>APD ÅäÖÃÑ¡Ïî</title> <tgroup cols="4"> <thead> <row> <entry>Ãû³Æ</entry> <entry>ĬÈÏÖµ</entry> <entry>¿ÉÐ޸ķ¶Î§</entry> <entry>¸üмǼ</entry> </row> </thead> <tbody> <row> <entry>apd.dumpdir</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>apd.statement_tracing</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.apd.dumpdir"> <term> <parameter>apd.dumpdir</parameter> <type>string</type> </term> <listitem> <para> É趨 APD дÈëµ÷ÊÔÊä³öÎļþµÄĿ¼¡£¿ÉÒÔÖ¸¶¨¾ø¶Ô·¾¶»òÏà¶Ô·¾¶¡£ </para> <para> ¿ÉÒÔÔÚ <function>apd_set_pprof_trace</function> ÖÐÒÔ²ÎÊýÖ¸¶¨Ò»¸ö²»Í¬Ä¿Â¼¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apd.statement-tracing"> <term> <parameter>apd.statement_tracing</parameter> <type>boolean</type> </term> <listitem> <para> Ö¸¶¨ÊÇ·ñ½øÐÐÿÐеĸú×Ù¡£½«´ËÏî´ò¿ª£¨ÉèΪ 1£©½«Ó°Ïìµ½³ÌÐòµÄÐÔÄÜ¡£ </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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 --> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apd/reference.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apd/reference.xml +++ phpdoc-zh/reference/apd/reference.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <!-- Purpose: basic.php --> <!-- Membership: pecl --> <reference id="ref.apd"> <title>APD ¸ß¼¶ PHP µ÷ÊÔÆ÷</title> <titleabbrev>APD</titleabbrev> <partintro> <section id="apd.intro"> &reftitle.intro; <para> APD ÊÇ Advanced PHP Debugger£¬¼´¸ß¼¶ PHP µ÷ÊÔÆ÷¡£ÊÇÓÃÀ´¸ø PHP ´úÂëÌṩ¹æ»®Óë¾À´íµÄÄÜÁ¦£¬ÒÔ¼°ÌṩÁËÏÔʾÕû¸ö¶ÑÕ»×·×ÙµÄÄÜÁ¦¡£APD Ö§³Ö½»»¥Ê½¾À´í£¬µ«Ä¬ÈÏÊǽ«Êý¾ÝдÈë¸ú×ÙÎļþ¡£Ëü»¹ÌṩÁË»ùÓÚʼþµÄÈÕÖ¾£¬Òò´Ë²»Í¬¼¶±ðµÄÐÅÏ¢£¨°üÀ¨º¯Êýµ÷Ó㬲ÎÊý´«µÝ£¬¼ÆÊ±µÈ£©¿ÉÒÔ¶Ô¸ö±ðµÄ½Å±¾´ò¿ª»ò¹Ø±Õ¡£ <caution> <para> APD ÊÇÒ»¸ö Zend À©Õ¹¿à£¬ÐÞ¸ÄÁË PHP ÄÚ²¿´¦Àíº¯Êýµ÷Óõķ½Ê½£¬Òò´ËÓпÉÄÜÓëÆäËü Zend À©Õ¹¿â£¨ÀýÈç Zend Optimizer£©²»¼æÈÝ¡£ </para> </caution> </para> </section> &reference.apd.configure; &reference.apd.ini; <section id="apd.resources"> &reftitle.resources; &no.resource; </section> <section id="apd.constants"> &reftitle.constants; &no.constants; </section> <section id="apd.examples"> <title>ÔõÑùÔڽű¾ÖÐʹÓà PHP-APD</title> <procedure> <step> <para> ÔÚ PHP ½Å±¾µÄµÚÒ»Ðе÷Óà apd_set_pprof_trace() º¯ÊýÀ´Æô¶¯¸ú×Ù£º </para> <para> <programlisting role="php"> <![CDATA[ apd_set_pprof_trace(); ]]> </programlisting> </para> <para> ¿ÉÒÔÔڽű¾ÖÐÈκÎÒ»ÐвåÈëÕâÒ»ÐУ¬µ«ÊÇÈç¹û²»ÊǴӽű¾¿ªÍ·¿ªÊ¼¸ú×ٵϰ£¬Ôò¶ªÊ§Á˲¿·ÖÊý¾Ý£¬ÓпÉÄÜÔì³ÉÐÔÄÜÉÏµÄÆ¿¾±¡£ </para> </step> <step> <para> È»ºóÔËÐнű¾¡£Êä³ö½«±»Ð´Èëµ½ <filename>apd.dumpdir/pprof_pid.ext</filename>¡£ <tip> <para> Èç¹ûÔËÐеÄÊÇ CGI °æµÄ PHP£¬ÐèÒª¼ÓÈë '-e' ±ê¼ÇÆôÓÃÀ©Õ¹ÐÅÏ¢ÒÔʹ APD Õý³£¹¤×÷¡£ÀýÈ磺 <userinput>php -e -f script.php</userinput> </para> </tip> </para> </step> <step> <para> ÒªÏÔʾ¸ñʽ»¯µÄµ÷ÊÔÊý¾Ý£¬ÔËÐÐ <command>pprofp</command> ÃüÁî²¢¼ÓÉÏ×Ô¼ºÑ¡ÔñµÄÅÅÐòºÍÏÔʾѡÏî¡£¸ñʽ»¯µÄÊä³öÀàËÆÓÚ£º <screen> <![CDATA[ bash-2.05b$ pprofp -R /tmp/pprof.22141.0 Trace for /home/dan/testapd.php Total Elapsed Time = 0.00 Total System Time = 0.00 Total User Time = 0.00 Real User System secs/ cumm %Time (excl/cumm) (excl/cumm) (excl/cumm) Calls call s/call Memory Usage Name -------------------------------------------------------------------------------------- 100.0 0.00 0.00 0.00 0.00 0.00 0.00 1 0.0000 0.0009 0 main 56.9 0.00 0.00 0.00 0.00 0.00 0.00 1 0.0005 0.0005 0 apd_set_pprof_trace 28.0 0.00 0.00 0.00 0.00 0.00 0.00 10 0.0000 0.0000 0 preg_replace 14.3 0.00 0.00 0.00 0.00 0.00 0.00 10 0.0000 0.0000 0 str_replace ]]> </screen> </para> <para> ÉÏÀýÖÐÓÃµÄ -R Ñ¡Ïµ÷ÊÔÊý¾Ý±í¸ñÒԽű¾Ö´ÐÐÿ¸öº¯ÊýËù»¨µÄʱ¼äÀ´ÅÅÐò¡£"cumm call" Ò»ÁÐÏÔʾÁËÿ¸öº¯Êý±»µ÷ÓõĴÎÊý£¬"s/call" Ò»ÁÐÏÔʾÁËÿ¸öº¯Êýÿ´Îµ÷ÓÃÆ½¾ùËù»¨µÄÃëÊý¡£ </para> </step> <step> <para> ÒªÉú³É¿ÉÒÔµ¼Èëµ½ KCacheGrind µ÷ÊÔ·ÖÎöϵͳÖеĵ÷ÓÃÊ÷Îļþ£¬ÔËÐÐ <command>pprof2calltree</command> ÃüÁî¡£ </para> </step> </procedure> </section> <section id="apd.contact"> <title>ÁªÏµÐÅÏ¢</title> <para> Èç¹ûÓÐ×¢½â£¬´íÎóÐÞÕý£¬Ìá¸ß»òÕßÏë°ïÖú¿ª·¢´ËÀ©Õ¹£¬Çë·¢ËÍÓʼþµ½ <ulink url="mailto:&email.apd;">&email.apd;</ulink>¡£»¶Ó­ÈκΰïÖú¡£ </para> </section> </partintro> &reference.apd.functions; </reference> <!-- 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 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 -->
« previous php.doc.zh (#2787) next »