Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you recommend Performance Analysis tools for PHP? [closed]

Can anyone recommend some useful performance analysis tools for PHP scripts? Anything that could help me find problematic or unusually slow blocks of code, details about execution time, etc. would be really helpful. I know there are tools out there, but I'm wondering what people recommend as being the most useful and well-designed.

like image 538
Wilco Avatar asked Sep 28 '08 07:09

Wilco


People also ask

How does PHP measure performance?

The timestamp function placed twice in a program one at starting of program and another at end of the program. Then the time difference between end time and start time is the actual speed of code. PHP uses microtime($get_as_float) function to measure the speed of code.

What is performance analysis tool and techniques?

Definition. Performance analysis tools support the application developer in tuning the application's performance for a given architecture. They measure performance data during the execution of the application and provide means to analyze and interpret the provided data and to detect performance bottlenecks.

Is PHP getting faster?

The support is rapid and outstanding, and their servers are the fastest for WordPress. PHP is much alive, faster, and better than ever. PHP sits at the very top of server-side programming languages.


2 Answers

Try webgrind. It gives you the profiling of CacheGrinder in an easy to read, browser based format. I'm on a Mac and it has made profiling a breeze.

like image 87
rg88 Avatar answered Nov 08 '22 11:11

rg88


XDebug's profiler is good. But then I'm a KDE user... I think you could install the KCacheGrind in other window managers though.

like image 4
Vinko Vrsalovic Avatar answered Nov 08 '22 12:11

Vinko Vrsalovic