Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79963 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68850 invoked from network); 27 Dec 2014 11:41:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2014 11:41:30 -0000 Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:61148] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/B0-64888-9EA9E945 for ; Sat, 27 Dec 2014 06:41:29 -0500 Received: by mail-wg0-f53.google.com with SMTP id l18so15553998wgh.26 for ; Sat, 27 Dec 2014 03:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=93qePp+YyiGqoMXA/hkVCtfEDlDYnaW0mbg96YJyAbs=; b=Sfx1tuHlLP4dn6Of8rgoLVgnW+h6lKCepeSC85HawdH63lRxvrFRHBiATxyJsoRWez Tt+6LVeZbp8CHK67pcFRtHs9LquRdf2RPhFK+q5eKvhn5P1xeuIleGjSgAcnkqoXkBAa QOeQO7kisNTrGiNOvxRhbuKVuPOnFPqYG+CYdafFP5ogJliJ1VZIK4RyCwdMb8ZsxdlB 2U5vVJHZ1ilAVfv9Or0vcjbjnAblx30MhbP3yyKZLiEvrQqMiUUi2+lZ/iAeGaqPzm6Z qTE87JoJI62i6HD4FYSFb0wum9yyR00TxKl1hxxymRqj0HMWy8Aj9nAsrSOz7qSZP2Og 6LJA== X-Received: by 10.194.157.4 with SMTP id wi4mr88787866wjb.54.1419680486355; Sat, 27 Dec 2014 03:41:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.27.78.211 with HTTP; Sat, 27 Dec 2014 03:41:06 -0800 (PST) In-Reply-To: References: <5499E5A4.2080106@gmail.com> Date: Sat, 27 Dec 2014 15:41:06 +0400 Message-ID: To: Derick Rethans Cc: Stanislav Malyshev , Jacob Bednarz , PHP Internals Content-Type: multipart/alternative; boundary=089e013c6b50157884050b311fd5 Subject: Re: [PHP-DEV] Line profiler for PHP From: crocodile2u@gmail.com (Crocodile) --089e013c6b50157884050b311fd5 Content-Type: text/plain; charset=UTF-8 Hello Jacob Take a look at http://pinba.org/ . While this is probably not exactly (or may be even not at all) the thing you asked for, it is definitely interesting. It allows for some profiling *right on production. *There are certain things that you only experience under heavy load, and this tool may let you know what's happening. Cheers, Victor 2014-12-24 14:16 GMT+03:00 Derick Rethans : > On Tue, 23 Dec 2014, Stanislav Malyshev wrote: > > > > The questions I have are: - Is this even possible? > > > > Yes, should be possible but: > > 1. If you want precision, it would slow down your code a lot, as > > basically you need to record timing of each opcode, which can be very > > expensive. > > 2. If you're ok with less precision, you can do sampling, but in that > > case you probably need your script to spend a lot of time in the same > > areas of the code to have any meaningful results, otherwise it'd be just > > random. > > > > > - Are there any projects out there or being worked on that achieve > > > this? > > > > Most of the profilers afaik go by functions. Most probably because > > line-level profiling would be so intrusive as to not produce really > > valid results, but maybe it can be done in a way that is not that > > intrusive. > > I have played with it for Xdebug, but it was too much of a slow down to > be of any use... > > cheers, > Derick > > -- > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > Posted with an email client that doesn't mangle email: alpine > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e013c6b50157884050b311fd5--