hi derick & others,
i am trying to profile a CLI php script that runs for about 20min and
eats up a LOT of memory (in the gigabytes), but both APD and xdebug do
not show me memory usage / deltas. this makes me suspect a common
underlying problem.
php 5.0.5-dev on linux:
$ ./configure --enable-sockets --enable-memory-limit
--prefix=/usr/local/php5 --with-xmlreader=/usr/local
--with-libxml-dir=/usr/local --with-gd --with-apxs2=/usr/local/ap
ache2/bin/apxs --with-zlib-dir=/usr/ --with-mysql=shared,/usr/
--with-curl --enable-mbstring --with-mysqli --with-xsl=/usr/local/
--with-jpeg-dir=/usr/ --with-tidy
php -m | less :
[PHP Modules]
ctype
curl
dom
fileinfo
gd
iconv
json
libxml
mbstring
mysql
mysqli
pcre
posix
session
SimpleXML
sockets
SPL
SQLite
standard
tidy
tokenizer
uuid
xdebug
xml
xmlreader
xsl
zip
zlib
[Zend Modules]
Xdebug
with xdebug2 from today's CVS
trace file looks like this:
TRACE START [2005-11-14 17:46:33]
0.0009 64 -> require_once()
/home/gregor/src/trunk/bin/csv.php:12
0.0010 64 -> dirname()
/home/gregor/src/trunk/inc/autoload.php:2
0.0011 64 -> define()
/home/gregor/src/trunk/inc/autoload.php:2
0.0011 64 -> ini_get()
/home/gregor/src/trunk/inc/autoload.php:6
[...]
298.1102 64 -> debug::DC()
/home/gregor/src/trunk/inc/db.php:47
298.1103 64 -> debug::determineFlags()
/home/gregor/src/trunk/inc/debug.php:50
298.1103 64 -> func_get_args()
/home/gregor/src/trunk/inc/debug.php:52
298.1104 64 -> array_shift()
/home/gregor/src/trunk/inc/debug.php:55
298.1104 64 -> array_shift()
/home/gregor/src/trunk/inc/debug.php:56
298.1104 64 -> in_array()
/home/gregor/src/trunk/inc/debug.php:60
298.1105 64 -> in_array()
/home/gregor/src/trunk/inc/debug.php:66
any ideas?
thanks,
-gregor
-- Save my (and your) time: http://tinyurl.com/c6e3jReceived on Mon Nov 14 2005 - 19:15:47 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST