Profiling PHP applications with PhpStorm

That application we are building is way too slow. What gives? Did someone on our team commit code while partying? Are we making too many database calls? The only way to learn about the performance of our application code is to profile it. Something that’s fairly easy to do with PhpStorm!

Whether it’s a full web application, some library code or just a unit test, profiling allows us to gather program execution statistics. Information like the names of functions executed, the number of times a function has been executed, how long a function took to execute and such can give us a hint on where our code can be improved.

PhpStorm comes with support for two popular PHP profilers: Xdebug and Zend Debugger. Curious to see how this works? Head over the tutorial of your choice:

Give it a try and share your feedback through the issue tracker, the comments below or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

This entry was posted in Cool Feature and tagged , , , . Bookmark the permalink.

5 Responses to Profiling PHP applications with PhpStorm

  1. André says:

    Is it wise to make a blog post about it while “Analyze Profiler Snapshot” is stillgiving wrong results?

  2. Jesse says:

    The only problem with Xdebug is that it double-counts time spent inside a recursive function call, resulting in total times over 100%.

    Facebook’s XHProf works much better.

    (see http://bugs.xdebug.org/view.php?id=77)

  3. Philippe says:

    Would it be possible to upgrade included SVN client to support 1.8 working copy format?
    SVNKit 1.8.3 supports it ;)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">