cvs: phpdoc-fa /reference/apd constants.xml examples.xml ini.xml reference.xml

From: Date: Wed, 20 May 2009 11:52:03 +0000
Subject: cvs: phpdoc-fa /reference/apd constants.xml examples.xml ini.xml reference.xml
Groups: php.doc.fa 
Request: Send a blank email to doc-fa+get-97@lists.php.net to get a copy of this message
psalehpoor Wed May 20 11:52:03 2009 UTC Added files: /phpdoc-fa/reference/apd constants.xml examples.xml ini.xml reference.xml Log: translated to persian

http://cvs.php.net/viewvc.cgi/phpdoc-fa/reference/apd/constants.xml?view=markup&rev=1.1 Index: phpdoc-fa/reference/apd/constants.xml +++ phpdoc-fa/reference/apd/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: pedram Status: ready --> <!-- $Revision: 1.1 $ --> <appendix xml:id="apd.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &extension.constants; <table> <title>APD constants</title> <tgroup cols="3"> <thead> <row> <entry>Constant</entry> <entry>Value</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry> <constant>FUNCTION_TRACE</constant> (<type>integer</type>) </entry> <entry>1</entry> <entry></entry> </row> <row> <entry> <constant>ARGS_TRACE</constant> (<type>integer</type>) </entry> <entry>2</entry> <entry></entry> </row> <row> <entry> <constant>ASSIGNMENT_TRACE</constant> (<type>integer</type>) </entry> <entry>4</entry> <entry></entry> </row> <row> <entry> <constant>STATEMENT_TRACE</constant> (<type>integer</type>) </entry> <entry>8</entry> <entry></entry> </row> <row> <entry> <constant>MEMORY_TRACE</constant> (<type>integer</type>) </entry> <entry>16</entry> <entry></entry> </row> <row> <entry> <constant>TIMING_TRACE</constant> (<type>integer</type>) </entry> <entry>32</entry> <entry></entry> </row> <row> <entry> <constant>SUMMARY_TRACE</constant> (<type>integer</type>) </entry> <entry>64</entry> <entry></entry> </row> <row> <entry> <constant>ERROR_TRACE</constant> (<type>integer</type>) </entry> <entry>128</entry> <entry></entry> </row> <row> <entry> <constant>PROF_TRACE</constant> (<type>integer</type>) </entry> <entry>256</entry> <entry></entry> </row> <row> <entry> <constant>APD_VERSION</constant> (<type>string</type>) </entry> <entry>example: <literal>1.0.2-dev</literal></entry> <entry></entry> </row> </tbody> </tgroup> </table> </appendix> <!-- 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/viewvc.cgi/phpdoc-fa/reference/apd/examples.xml?view=markup&rev=1.1 Index: phpdoc-fa/reference/apd/examples.xml +++ phpdoc-fa/reference/apd/examples.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <appendix xml:id="apd.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <section xml:id="apd.examples.usage"> <title>چگونگی استفاده از PHP-APD در اسکریپت</title> <procedure> <step> <para> به عنوان اولین خط اسکریپت خود تابع 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> </appendix> <!-- 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-fa/reference/apd/ini.xml?view=markup&rev=1.1 Index: phpdoc-fa/reference/apd/ini.xml +++ phpdoc-fa/reference/apd/ini.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <section xml:id="apd.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; <para> <table> <title>گزین‌های تنظیمات APD</title> <tgroup cols="4"> <thead> <row> <entry>Name</entry> <entry>Default</entry> <entry>Changeable</entry> <entry>Changelog</entry> </row> </thead> <tbody> <row> <entry><link linkend="ini.apd.dumpdir">apd.dumpdir</link></entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry><link linkend="ini.apd.statement-tracing">apd.statement_tracing</link></entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> <entry>موجود از زمان apd 0.9.</entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry xml:id="ini.apd.dumpdir"> <term> <parameter>apd.dumpdir</parameter> <type>string</type> </term> <listitem> <para> تعیین کننده دایرکتوری برای نوشتن فایل‌های کپی است. می‌توانید مسیر نسبی یا مسیر کامل تعیین کنید. </para> <para> می‌توانید دایرکتوری دیگری به عنوان آرگومان <function>apd_set_pprof_trace</function> تعیین کنید. </para> </listitem> </varlistentry> <varlistentry xml: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/viewvc.cgi/phpdoc-fa/reference/apd/reference.xml?view=markup&rev=1.1 Index: phpdoc-fa/reference/apd/reference.xml +++ phpdoc-fa/reference/apd/reference.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <reference xml:id="ref.apd" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>APD &Functions;</title> <partintro> <section xml:id="apd.contact"> <title>اطلاعات تماس</title> <para> اگر دارای نظر، اصلاح خطا یا خواهان کمک به این برنامه هستید می‌توانید به <link xlink:href="mailto:&email.apd;">&email.apd;</link> نامه بفرستید. هر نوع کمکی مورد پذیرش است. </para> </section> </partintro> &reference.apd.entities.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.fa (#97) next »