Code Profiling

From Dreamwidth Notes
Revision as of 22:50, 14 September 2010 by Foxfirefey (Talk | contribs)

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

Need these files for your Dreamwidth installation:

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