Code Profiling

From Dreamwidth Notes
Revision as of 23:05, 14 September 2010 by Exor674 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You'll need the Dev Tools repository set up.

Example config for Apache:

PerlSetEnv   LJHOME /home/dw

# comment FOR profiling
MaxClients 10
StartServers 3

# uncomment FOR profiling
StartServers 1
MaxClients 1

PerlSetEnv WANT_NYTPROF 0
# -- NYTProf
PerlSetEnv NYTPROF file=/home/dw/logs/nytprof/log
#PerlSetEnv WANT_NYTPROF 1

# uncomment for debugging
# then run apache manually with -X
#PerlSetEnv WANT_APACHE_DB 1

# leave this uncommented!
PerlRequire  /home/dw/cgi-bin/setup_inc.pl
PerlModule   DWDevelopment::ProfilingBootstrap