On Wed, Jun 03, 2009 at 10:27:56AM +0200, piccard wrote: > > On Tue, Jun 02, 2009 at 08:35:43AM -0700, [email protected] wrote: > > > >> trying to setup Devel::NYTProf::Apache, but haven't had any luck > >> sofar. Here I've got a Suse-System and in the /etc/apache2/default- > >> server.conf I've included in the upper part: > >> > >> <IfDefine NYTPROF> > >> MaxClients 1 > >> PerlModule Devel::NYTProf::Apache > >> </IfDefine> > >> > >> Also in /etc/apache2/mod_perl-startup.pl I've included as first module > >> Devel::NYTProf::Apache. When I start apache "/usr/sbin/httpd2 -f /etc/ > >> apache2/httpd.conf -k start -DNYTPROF &" I get 2 files, like it should > >> be, like: > >> > >> - nytprof.6533.out > >> - nytprof.6533.out.6534 > >> > >> But when I try to convert them I always get this error-message: > >> > >> Unable to open '/(eval 2)' for reading: No such file or directory. Try > >> + running /usr/bin/nytprofhtml in the same directory as you ran Devel: > >> +:NYTProf, or ensure @INC is correct. Unable to open '-e' for reading: > >> No such file or directory. Unable to open '/(eval 7)' for reading: No > >> such file or directory. > >> [download] > > > > It is odd. My first guess would be that the perl flag that adds > > filename details to evals ($^P |= 0x100) isn't working. > > Debug-Status $^P says it's 0
What do you mean by "Debug-Status"? Where are you reading that from? > > What version of perl are you using? (print $] from your code) > 5.008008 > > Does your code alter $^P anywhere? (printf "%x", $^P from your code) > no Please humour me by doing printf "%x", $^P from your code, and not at compile time, but after everything has loaded - ideally when handling a request. > > I'd like to see a debug trace from the profiler (not the reporter). > > > see the attachment That's a trace from the reporter (nytprofhtml). I'd like to see a trace from the profiler. Please email (just me) a trace level 4. In fact you could email me a compressed tarball with the trace plus all the generated nytprof profile files. > > You say "error-message" but I presume they're actually warnings. > > They only relate to string evals and you do get a report, yes? > > > Yes, I get a report, but I think the profiler just records the start of > the apache and nothing else. The report doesn't include any CGI-Script I > called. > > Here are some more configuration-details: > > lxast02:/tmp # echo $PERL5OPT > -d:NYTProf > lxast02:/tmp # echo $PERL5DB > use Devel::NYTProf Why have you set PERL5OPT & PERL5DB? The docs for Devel::NYTProf::Apache don't ask you to do that. (The env vars won't have any effect on apache unless you've added PerlPassEnv entries for them into the apache config file. Have you?) > Fid 25 is (eval 0)[/usr/lib/perl5/5.8.8/base.pm:82] (eval 24:82) 0x22 sz0 mt0 That eval gets the filename added to it. > Fid 35 is > /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/Const.pm (eval > 0:0) 0x2 sz0 mt0 > Fid 36 is /(eval 2) (eval 0:0) 0x2 sz0 mt0 > Fid 37 is /(eval 7) (eval 0:0) 0x2 sz0 mt0 But those two don't. Odd. Either there's something 'special' about those two (like they're created by calls to Perl_eval_sv() from "outside" perl, ie from the embedding context) or the value of $^P has been altered so the extra filename info is no longer being added. Tim. p.s. I've checked in a change (r750) that might avoid the warnings, but don't bother using it yet. Let's stick with what you have. --~--~---------~--~----~------------~-------~--~----~ 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] -~----------~----~----~----~------~----~------~--~---
