Re: Line profiler for PHP

From: Date: Tue, 23 Dec 2014 22:13:51 +0000
Subject: Re: Line profiler for PHP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-79897@lists.php.net to get a copy of this message
On Tue, Dec 23, 2014 at 10:28 PM, Jacob Bednarz <jacob.bednarz@gmail.com> wrote: > Hey, > I have been working on some profiling of an application recently and > whilst xhprof and xdebug are good to get an overall picture to further > break into, I haven’t been able to find a tool for line by line profiling > in PHP for a particular file. I have done a bit of research and found > rblineprof (https://github.com/tmm1/rblineprof) which is a line profiler > for Ruby and I would like to achieve this in PHP. > > The questions I have are: > - Is this even possible? > - Are there any projects out there or being worked on that achieve this? > - If nothing exists, I am happy to look into this however I will need some > guidance on best practices, caveats with profiling PHP and ways of parsing > the file correctly. > > Thanks! I've implemented a basic sampling profiler with line-level resolution some time ago: https://github.com/nikic/sample_prof Didn't use it since then, but maybe it still works. Nikita

« previous php.internals (#79897) next »