Live data from Hacker News

PHP Profiler to optimize & speed up your applications

github.com

21–24 of 24 posts

Re: PHP Profiler to optimize & speed up your applications

#21

I have found Facebook's xhprof extension to be a a very useful extension for profiling also https://github.com/facebook/xhprof . Unlike the one above, it doesn't require any code changes (it's a C-based PECL extension), and can easily be set up to be triggered via a parameter on the URL or to profile every nth page load (via a simple auto-prepend) for usage in production environments. It produces a full callgraph (us…

Profiling PHP with PHP is kind of humorous, I'll concede. But it can certainly help alert you to slow-running pages, queries, and steps. Which should at least give you a starting point or prompt you to dive deeper with a stronger/more robust tool like xdebug+kcachegrind.

Thanks for checking out the library and providing feedback though, I appreciate it!

Re: PHP Profiler to optimize & speed up your applications

#22

I have found Facebook's xhprof extension to be a a very useful extension for profiling also https://github.com/facebook/xhprof . Unlike the one above, it doesn't require any code changes (it's a C-based PECL extension), and can easily be set up to be triggered via a parameter on the URL or to profile every nth page load (via a simple auto-prepend) for usage in production environments. It produces a full callgraph (us…

There's also a GUI tool to go along with the backend work: http://phpadvent.org/2010/profiling-with-xhgui-by-paul-reinh...

Re: PHP Profiler to optimize & speed up your applications

#24

I have found Facebook's xhprof extension to be a a very useful extension for profiling also https://github.com/facebook/xhprof . Unlike the one above, it doesn't require any code changes (it's a C-based PECL extension), and can easily be set up to be triggered via a parameter on the URL or to profile every nth page load (via a simple auto-prepend) for usage in production environments. It produces a full callgraph (us…

There's also a GUI tool to go along with the backend work: http://phpadvent.org/2010/profiling-with-xhgui-by-paul-reinh...

Thank you, I had not seen your fork and modifications before. Will check them out!
Post reply on HN