Profiling nginx

I need to profile nginx, how should be done?

I have modified the Makefile, by adding the -pg CC flag, but the
profiling file is not generated.

Thanks Manlio P.

On Wed, Mar 05, 2008 at 08:08:43PM +0100, Manlio P. wrote:

I need to profile nginx, how should be done?

I have modified the Makefile, by adding the -pg CC flag, but the
profiling file is not generated.

Try --with-cc-opt="-pg" --with-ld-opt="-pg".

You might want to try Google perftools:
http://code.google.com/p/google-perftools/
The profiler can work without re-compiling.

Igor S. ha scritto:

On Wed, Mar 05, 2008 at 08:08:43PM +0100, Manlio P. wrote:

I need to profile nginx, how should be done?

I have modified the Makefile, by adding the -pg CC flag, but the
profiling file is not generated.

Try --with-cc-opt="-pg" --with-ld-opt="-pg".

Thanks!

Manlio P.

Denis S. Filimonov ha scritto:

You might want to try Google perftools:
Google Code Archive - Long-term storage for Google Code Project Hosting.
The profiler can work without re-compiling.

Thanks for the suggestion, but recompiling Nginx is not a problem!

Manlio P.