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 should not be set.
It helps a little after I set both "max_execution_time" and "max_input_time" to 0, PHP engine no longer set ITIMER_PROF and SIGPROF at the beginning of the request. However, at the end of the request, PHP engine still set ITIMER_PROF to 0 regardless. I guess I have to patch the code.

Thanks,
George


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to