Revision: 1235
Author: tim.bunce
Date: Wed May 26 10:35:13 2010
Log: Set endatexit and addpid options in Apache.pm.

http://code.google.com/p/perl-devel-nytprof/source/detail?r=1235

Modified:
 /trunk/lib/Devel/NYTProf/Apache.pm

=======================================
--- /trunk/lib/Devel/NYTProf/Apache.pm  Wed May 26 06:16:12 2010
+++ /trunk/lib/Devel/NYTProf/Apache.pm  Wed May 26 10:35:13 2010
@@ -23,6 +23,11 @@
         $ENV{NYTPROF} = "file=/tmp/nytprof.$$.out";
warn "NYTPROF env var not set, so defaulting to NYTPROF='$ENV{NYTPROF}'";
     }
+
+    require Devel::NYTProf::Core;
+
+    DB::set_option("endatexit", 1); # for vhost with PerlOption +Parent
+    DB::set_option("addpid", 1);

     require Devel::NYTProf;
 }
@@ -110,9 +115,11 @@

   file=/tmp/nytprof.$$.out

+The file actually created by NTProf will also have the process id appended to
+it because the C<addpid> option is enabled by default.
+
 See L<Devel::NYTProf/"ENVIRONMENT VARIABLES"> for
 more details on the settings effected by this environment variable.
-
Try using C<PerlPassEnv> so you can set the NYTPROF environment variable externally.

 Each profiled mod_perl process will need to have terminated before you can

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to