Re: [PHP-DEV] gprof & PHP

2008-05-05 Thread Marcus Boerger
Hello George, sounds like you found a bug to me. We somehow need to have a request variale that tracks whetehr the signal handling was activated. Since the user could change the ini settings during the script, we either need to disallow that (in case we don't yet) and can use the same checks as

Re: [PHP-DEV] gprof & PHP

2008-05-05 Thread George Wang
Seems that PHP engine is using ITIMER_PROF and SIGPROF for limiting the max execution time of a php script, and gprof cannot produce useful results. Is there an option to turn it off temporarily? Is there a better tool for code optimization? IIRC if "max_execution_time" is 0 then timeout sho

Re: [PHP-DEV] gprof & PHP

2008-05-05 Thread Stanislav Malyshev
Hi! Seems that PHP engine is using ITIMER_PROF and SIGPROF for limiting the max execution time of a php script, and gprof cannot produce useful results. Is there an option to turn it off temporarily? Is there a better tool for code optimization? IIRC if "max_execution_time" is 0 then timeout