Difference between revisions of "Code Profiling"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with "Need these files for your Dreamwidth installation: * https://bitbucket.org/anall/dwdev-tools/changeset/9d572bb8dc13 Example config for Apache: <pre> PerlSetEnv LJHOME /home/...")
(No difference)

Revision as of 22:50, 14 September 2010

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