Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79892 invoked from network); 5 May 2008 18:47:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 May 2008 18:47:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:10425] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/21-14293-8365F184 for ; Mon, 05 May 2008 14:47:21 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 5 May 2008 21:48:16 +0300 Received: from [192.168.16.217] ([192.168.16.217]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 5 May 2008 11:48:13 -0700 Message-ID: <481F5631.7000301@zend.com> Date: Mon, 05 May 2008 11:47:13 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: George Wang CC: internals@lists.php.net References: <481F54DE.1000604@litespeedtech.com> In-Reply-To: <481F54DE.1000604@litespeedtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 May 2008 18:48:13.0627 (UTC) FILETIME=[92A540B0:01C8AEE0] Subject: Re: [PHP-DEV] gprof & PHP From: stas@zend.com (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 should not be set. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com