I don't know what that would be.
> And secondly, I'm unable to see any of
> the files that are being run via perl -e.
> In an attempt to solve the above problem, I wanted to try out using
> the settings optimize=0:use_db_sub=1. So, I added "PerlSetEnv NYTPROF
> optimize=0:use_db_sub=1" to httpd.conf. I restart apache, slam my
> webserver, but now, despite not supplying any output file location,
> the files now are output to my current working directory (not /tmp/).
The docs say:
If the NYTPROF environment variable isn't set at the time
Devel::NYTProf::Apache is loaded then Devel::NYTProf::Apache will issue
a warning and default it to:
file=/tmp/nytprof.$$.out
(The docs ought to mention that the addpid an endatexit options are also
enabled, but directly, not via the NYTPROF environment variable.)
So you want to use
file=/tmp/nytprof.$$.out:optimize=0:use_db_sub=1
> Furthermore, they no longer have their worker process IDs.
Try
file=/tmp/nytprof.$$.out:optimize=0:use_db_sub=1:addpid=1
> Essentially what I'm trying to figure out is if there a way to specify
> the worker process id within the file portion of the NYTPROF
> environment variable. I was hoping specifying the file such as
> "PerlSetEnv NYTPROF optimize=0:use_db_sub=1:file=/nytprof/nytprof.
> $parent.out.$$" would work, but that only literally places the dollar
> signs in the file name.
You could just use PerlPassEnv NYTPROF and set the NYTPROF env var
yourself before starting apache.
> So, if anyone knows how to solve the specifying the worker ID problem,
> I'd most appreciate it. If you have another solution for getting the
> nytperfhtml report generation to include the perl -e files (outside of
> upgrading perl, though I may wind up doing that), I'd much appreciate
> it.
See http://search.cpan.org/~timb/Devel-NYTProf-4.06/lib/Devel/NYTProf.pm#PROFILING
specifically the PERL5OPT env var. Maybe best to set it within the
apache worker process so as not to interfere with the parent.
Tim.