Re: gprof & PHP

From: Date: Mon, 05 May 2008 19:12:28 +0000
Subject: Re: gprof & PHP
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-37481@lists.php.net to get a copy of this message
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

« previous php.internals (#37481) next »