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/...")
 
 
Line 1: Line 1:
Need these files for your Dreamwidth installation:
+
You'll need the [[Dev Tools]] repository set up.
 
+
* https://bitbucket.org/anall/dwdev-tools/changeset/9d572bb8dc13
+
  
 
Example config for Apache:
 
Example config for Apache:

Latest revision as of 23:05, 14 September 2010

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