From: Dan F. <dfr...@cs...> - 2004-09-14 22:56:30
|
I'd like to run the Advanced PHP Debugger (APD) to try to get some detailed performance profiling. To do so, I have to be able to run PHP from the command-line to get a page I think is loading slowly. I have PHP 4.3.2, which has a command line interface. When I run % php index.php Page=Book SERVER_NAME=localhost I get some of the HomePage (not the "Book" page I asked for), and also errors like: <div class="error"><p>lib/config.php:475: Warning[2]: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address</p> </div> <div class="error"><p>lib/Request.php:442: Warning[2]: session_start(): Cannot send session cookie - headers already sent by (output started at /scratch/gibson/apache2/doc/dfrankow/phpwiki/lib/XmlElement.php:326)</p> </div> ... DB Error: constraint violation Has anyone done this? Any hints? Dan |
From: Reini U. <ru...@x-...> - 2004-09-15 10:32:45
|
Dan Frankowski schrieb: > I'd like to run the Advanced PHP Debugger (APD) to try to get some > detailed performance profiling. > > To do so, I have to be able to run PHP from the command-line to get a > page I think is loading slowly. I have PHP 4.3.2, which has a command > line interface. When I run I use php-4.3.9 with xdebug, which has a much better profiler. http://www.xdebug.org/docs-profiling2.php But you need the latest version (CVS best), KDE and KCacheGrind. The old version is similar to APD, but I never used that with perl -mDevel::DProf The zend debugger also has some good profiling support and works much easier than via cmdline. > % php index.php Page=Book SERVER_NAME=localhost > > > I get some of the HomePage (not the "Book" page I asked for), and also > errors like: > > <div class="error"><p>lib/config.php:475: Warning[2]: gethostbyaddr(): > Address is not a valid IPv4 or IPv6 address</p> > </div> > <div class="error"><p>lib/Request.php:442: Warning[2]: session_start(): > Cannot send session cookie - headers already sent by (output started at > /scratch/gibson/apache2/doc/dfrankow/phpwiki/lib/XmlElement.php:326)</p> > </div> > ... > DB Error: constraint violation > > Has anyone done this? no, we use the tests/units for command-line. > Any hints? use the correct parameters: pagename=Book gethostbyaddr(), ...: put the required $_SERVER vars which are not filled in by the command-line client into config/config.ini. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Jerome W. <jer...@la...> - 2004-09-15 20:54:22
|
Hello, if any of you is interested, there is a way to have xdebug2 and kcachegri= nd work on windows http://www.sklar.com/blog/index.php?/archives/42_PHP+5,+Xdebug+2,+and+KCa= che grind+on+Windows.html J=E9r=F4me -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of Reini Urban Sent: mercredi 15 septembre 2004 12:33 To: Dan Frankowski Cc: PhpWiki discussion Subject: Re: [Phpwiki-talk] Load PhpWiki page from the command-line for APD Dan Frankowski schrieb: > I'd like to run the Advanced PHP Debugger (APD) to try to get some > detailed performance profiling. > > To do so, I have to be able to run PHP from the command-line to get a > page I think is loading slowly. I have PHP 4.3.2, which has a command > line interface. When I run I use php-4.3.9 with xdebug, which has a much better profiler. http://www.xdebug.org/docs-profiling2.php But you need the latest version (CVS best), KDE and KCacheGrind. The old version is similar to APD, but I never used that with perl -mDevel::DProf The zend debugger also has some good profiling support and works much easier than via cmdline. > % php index.php Page=3DBook SERVER_NAME=3Dlocalhost > > > I get some of the HomePage (not the "Book" page I asked for), and also > errors like: > > <div class=3D"error"><p>lib/config.php:475: Warning[2]: gethostbyaddr()= : > Address is not a valid IPv4 or IPv6 address</p> > </div> > <div class=3D"error"><p>lib/Request.php:442: Warning[2]: session_start(= ): > Cannot send session cookie - headers already sent by (output started at > /scratch/gibson/apache2/doc/dfrankow/phpwiki/lib/XmlElement.php:326)</p= > > </div> > ... > DB Error: constraint violation > > Has anyone done this? no, we use the tests/units for command-line. > Any hints? use the correct parameters: pagename=3DBook gethostbyaddr(), ...: put the required $_SERVER vars which are not filled in by the command-line client into config/config.ini. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Phpwiki-talk mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwiki-talk --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.754 / Virus Database: 504 - Release Date: 06/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.754 / Virus Database: 504 - Release Date: 06/09/2004 |
From: Reini U. <ru...@x-...> - 2004-09-15 22:35:07
|
Jerome WAGNER schrieb: > if any of you is interested, there is a way to have xdebug2 and kcachegrind > work on windows > http://www.sklar.com/blog/index.php?/archives/42_PHP+5,+Xdebug+2,+and+KCache > grind+on+Windows.html Sure, it works out of the box (KDE via cygwin-x). I'm still fighting with compiling an updated apache and mod_php for cygwin though. I have successfulyly built apache and php-cli, but producing a rebasable mod_php4.dll (or even a fixed one) really is not that easy. Nobody was able do that so far... And all this just to test the memory exhaustion bug with certain versions. MSVC native versions do compile fine, linux versions of course also. Esp. php is very easy to build now. Before 4.3 it was a nightmare. > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Reini > Urban > Sent: mercredi 15 septembre 2004 12:33 > To: Dan Frankowski > Cc: PhpWiki discussion > Subject: Re: [Phpwiki-talk] Load PhpWiki page from the command-line for > APD > > > Dan Frankowski schrieb: > >>I'd like to run the Advanced PHP Debugger (APD) to try to get some >>detailed performance profiling. >> >>To do so, I have to be able to run PHP from the command-line to get a >>page I think is loading slowly. I have PHP 4.3.2, which has a command >>line interface. When I run > > > I use php-4.3.9 with xdebug, which has a much better profiler. > http://www.xdebug.org/docs-profiling2.php > But you need the latest version (CVS best), KDE and KCacheGrind. > > The old version is similar to APD, but I never used that with > perl -mDevel::DProf > > The zend debugger also has some good profiling support and works much > easier than via cmdline. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |