G
G
ga4o2011-10-06 16:45:40
PHP
ga4o, 2011-10-06 16:45:40

How to find out which PHP script is the most "heavy" for CPU?

Worth lighttpd + fastcgi + php.
I see that php creates a load on the CPU.
Maybe there is some stray in the form of a php extension or a module for lighttpd to find out which one?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
robofox, 2011-10-06
@robofox

Xdebug is a good profiler, give it a try.
To reduce the load, I advise you to use accelerators , I like Alternative PHP Cache .

V
Valery Selitsky, 2011-10-06
@WaveCut

Install Xdebug and configure it like this: View logs - CacheGrind ( WinCacheGrind , KCacheGrind )
...
xdebug.profiler_enable=1
xdebug.profiler_output_dir="d:\web\debug"
...

S
subvillion, 2011-10-06
@subvillion

pinba IMHO the best of free

P
Puma Thailand, 2011-10-07
@opium

The simplest thing I see is the page generation time in the web server logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question