Hello Tim,

thank you for your answering ;-)
> On Tue, Jun 02, 2009 at 08:35:43AM -0700, [email protected] wrote:
>   
>> Hello,
>>
>> sorry, I was already asking some time ago, but didn't get any answer.
>> Maybe I have been a little bit unclear, so  I try it again. I was
>> 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]
>>
>> So, if you have got any hints for me it would be great. Or is it just
>> a bug?
>>     
>
> 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 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
> I'd like to see a debug trace from the profiler (not the reporter).
>   
see the attachment
> 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

NYTPROF=trace=2:start=init

> In that case they're not having a significant effect on the report.
>
> Tim.
>   

Thank you very much,
Andy
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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]
-~----------~----~----~----~------~----~------~--~---

# nytprofhtml -f nytprof.20144.out.20145 
# trace=2
# start=init
Generating report...
Reading nytprof.20144.out.20145
reading profile data from file nytprof.20144.out.20145
#  Perl profile database. Generated by Devel::NYTProf on Wed Jun  3 09:27:35 
2009
: basetime = '1244014055'
: xs_version = '2.09'
: perl_version = '5.8.8'
: clock_id = '1'
: ticks_per_sec = '10000000'
: nv_size = '8'
: application = '/usr/sbin/httpd2'
#  Compressed at level 6 with zlib 1.2.3
Start of profile data for pid 20145 (ppid 20144, 1 pids live) at 
1244014055.906561
: profiler_start_time = '1244014055.90656'
Fid  1 is 
/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Devel/NYTProf/Apache.pm
 (eval 0:0) 0x2 sz0 mt0
Fid  2 is /usr/lib/perl5/5.8.8/constant.pm (eval 0:0) 0x2 sz0 mt0
Fid  3 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/mod_perl2.pm (eval 
0:0) 0x2 sz0 mt0
Fid  4 is /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec/Functions.pm 
(eval 0:0) 0x2 sz0 mt0
Fid  5 is /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec.pm (eval 
0:0) 0x2 sz0 mt0
Fid  6 is (eval 
0)[/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec.pm:7] (eval 5:7) 
0x22 sz0 mt0
Fid  7 is /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec/Unix.pm 
(eval 0:0) 0x2 sz0 mt0
Fid  8 is (eval 
0)[/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec/Unix.pm:7] (eval 
7:7) 0x22 sz0 mt0
Fid  9 is (eval 
0)[/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec/Functions.pm:9] 
(eval 4:9) 0x22 sz0 mt0
Fid 10 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/ServerUtil.pm
 (eval 0:0) 0x2 sz0 mt0
Fid 11 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/XSLoader.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 12 is /etc/apache2/mod_perl-startup.pl (eval 0:0) 0x2 sz0 mt0
Fid 13 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/Util.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 14 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/RequestRec.pm
 (eval 0:0) 0x2 sz0 mt0
Fid 15 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/RequestIO.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 16 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/RequestUtil.pm
 (eval 0:0) 0x2 sz0 mt0
Fid 17 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/ServerRec.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 18 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Log.pm (eval 
0:0) 0x2 sz0 mt0
Fid 19 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Connection.pm
 (eval 0:0) 0x2 sz0 mt0
Fid 20 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/Table.pm (eval 
0:0) 0x2 sz0 mt0
Fid 21 is /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 22 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/XSLoader.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 23 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/Registry.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 24 is /usr/lib/perl5/5.8.8/base.pm (eval 0:0) 0x2 sz0 mt0
Fid 25 is (eval 0)[/usr/lib/perl5/5.8.8/base.pm:82] (eval 24:82) 0x22 sz0 mt0
Fid 26 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/RegistryCooker.pm
 (eval 0:0) 0x2 sz0 mt0
Fid 27 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Response.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 28 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Access.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 29 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/Status.pm (eval 
0:0) 0x2 sz0 mt0
Fid 30 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/Global.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 31 is /usr/lib/perl5/5.8.8/File/Basename.pm (eval 0:0) 0x2 sz0 mt0
Fid 32 is /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/re.pm (eval 0:0) 0x2 
sz0 mt0
Fid 33 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Const.pm 
(eval 0:0) 0x2 sz0 mt0
Fid 34 is 
/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/Const.pm 
(eval 0:0) 0x2 sz0 mt0
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
Fid 38 is -e (eval 0:0) 0x22 sz0 mt0
Fid 39 is /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/XSLoader.pm (eval 0:0) 
0x4 sz0 mt0
Sub ModPerl::RegistryCooker::namespace_root fid 26 lines 281..284
Sub APR::XSLoader::BEGIN fid 22 lines 22..26
Sub File::Spec::BEGIN fid 5 lines 4..4
Sub constant::__ANON__[/usr/lib/perl5/5.8.8/constant.pm:103] fid 2 lines 
103..103
Sub re::unimport fid 32 lines 129..132
Sub Apache2::RequestRec::my_finfo fid 26 lines 785..789
Sub constant::BEGIN fid 2 lines 94..94
Sub ModPerl::RegistryCooker::debug fid 26 lines 729..733
Sub ModPerl::RegistryCooker::should_compile_once fid 26 lines 493..495
Sub File::Basename::fileparse fid 31 lines 103..176
Sub ModPerl::Util::BEGIN fid 13 lines 66..66
Sub Apache2::ServerUtil::server fid 10 lines 0..0
Sub ModPerl::RegistryCooker::shebang_to_perl fid 26 lines 576..594
Sub ModPerl::RegistryCooker::flush_namespace_normal fid 26 lines 518..523
Sub ModPerl::RegistryCooker::new fid 26 lines 105..110
Sub base::inherit_fields fid 24 lines 116..159
Sub ModPerl::Registry::handler fid 23 lines 27..31
Sub base::__ANON__[/usr/lib/perl5/5.8.8/base.pm:53] fid 24 lines 42..53
Sub File::Spec::Unix::updir fid 7 lines 176..176
Sub mod_perl2::BEGIN fid 3 lines 21..43
Sub ModPerl::RegistryCooker::get_mark_line fid 26 lines 634..637
Sub File::Basename::_strip_trailing_sep fid 31 lines 328..340
Sub ModPerl::RegistryCooker::chdir_file_normal fid 26 lines 619..624
Sub APR::BEGIN fid 21 lines 24..25
Sub File::Spec::Unix::BEGIN fid 7 lines 149..149
Sub ModPerl::RegistryCooker::uncache_myself fid 26 lines 764..780
Sub File::Spec::Unix::splitpath fid 7 lines 258..273
Sub ModPerl::RegistryCooker::install_aliases fid 26 lines 713..725
Sub File::Spec::Unix::no_upwards fid 7 lines 185..188
Sub ModPerl::RegistryCooker::BEGIN fid 26 lines 716..716
Sub ModPerl::RegistryCooker::cache_it fid 26 lines 450..453
Sub File::Spec::Unix::canonpath fid 7 lines 43..71
Sub base::has_version fid 24 lines 24..28
Sub ModPerl::Registry::BEGIN fid 23 lines 25..25
Sub ModPerl::Const::import fid 34 lines 41..52
Sub APR::XSLoader::load fid 22 lines 28..31
Sub constant::__ANON__[/usr/lib/perl5/5.8.8/constant.pm:108] fid 2 lines 
108..108
Sub Apache2::Response::BEGIN fid 27 lines 24..24
Sub ModPerl::RegistryCooker::init fid 26 lines 120..124
Sub Apache2::ServerRec::BEGIN fid 17 lines 29..29
Sub base::BEGIN fid 24 lines 4..4
Sub Apache2::RequestIO::BEGIN fid 15 lines 24..24
Sub ModPerl::RegistryCooker::cache_table_common fid 26 lines 430..432
Sub re::bits fid 32 lines 98..122
Sub constant::__ANON__[/usr/lib/perl5/5.8.8/constant.pm:99] fid 2 lines 99..99
Sub File::Spec::Unix::splitdir fid 7 lines 300..302
Sub Apache2::RequestUtil::BEGIN fid 16 lines 24..24
Sub XSLoader::load fid 39 lines 22..100
Sub File::Spec::Unix::path fid 7 lines 220..225
Sub File::Spec::Unix::rootdir fid 7 lines 127..127
Sub File::Spec::Unix::case_tolerant fid 7 lines 197..197
Sub ModPerl::RegistryCooker::namespace_from_uri fid 26 lines 335..352
Sub base::__ANON__[/usr/lib/perl5/5.8.8/base.pm:60] fid 24 lines 56..60
Sub ModPerl::RegistryCooker::make_namespace fid 26 lines 295..312
Sub File::Spec::Unix::devnull fid 7 lines 119..119
Sub ModPerl::RegistryCooker::log_error fid 26 lines 735..742
Sub ModPerl::RegistryCooker::compile fid 26 lines 664..680
Sub 
ModPerl::RegistryCooker::__ANON__[/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/RegistryCooker.pm:573]
 fid 26 lines 573..573
Sub ModPerl::RegistryCooker::error_check fid 26 lines 690..701
Sub File::Spec::Unix::_collapse fid 7 lines 488..518
Sub File::Spec::Unix::rel2abs fid 7 lines 440..461
Sub ModPerl::Global::BEGIN fid 30 lines 24..24
Sub File::Basename::dirname fid 31 lines 280..324
Sub Devel::NYTProf::Apache::BEGIN fid 1 lines 32..34
Sub main::BEGIN fid 12 lines 33..33
Sub re::setcolor fid 32 lines 84..96
Sub constant::import fid 2 lines 28..113
Sub Devel::NYTProf::Apache::child_exit fid 1 lines 43..45
Sub ModPerl::RegistryCooker::read_script fid 26 lines 536..554
Sub base::import fid 24 lines 63..113
Sub File::Basename::fileparse_set_fstype fid 31 lines 372..388
Sub Apache2::RequestRec::BEGIN fid 14 lines 24..24
Sub File::Spec::Unix::abs2rel fid 7 lines 359..408
Sub APR::Table::BEGIN fid 20 lines 24..24
Sub ModPerl::Const::compile fid 34 lines 0..0
Sub base::has_fields fid 24 lines 18..22
Sub ModPerl::RegistryCooker::can_compile fid 26 lines 254..272
Sub File::Spec::Unix::_cwd fid 7 lines 481..484
Sub Apache2::XSLoader::load fid 11 lines 28..31
Sub ModPerl::RegistryCooker::is_cached fid 26 lines 465..468
Sub 
ModPerl::RegistryCooker::__ANON__[/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/RegistryCooker.pm:572]
 fid 26 lines 567..572
Sub ModPerl::Util::unload_package_pp fid 13 lines 36..87
Sub ModPerl::RegistryCooker::should_compile_if_modified fid 26 lines 485..490
Sub File::Spec::Unix::_tmpdir fid 7 lines 144..163
Sub ModPerl::RegistryCooker::cache_table_local fid 26 lines 435..440
Sub ModPerl::RegistryCooker::get_script_name fid 26 lines 604..606
Sub File::Spec::Unix::_same fid 7 lines 410..412
Sub Apache2::Access::BEGIN fid 28 lines 24..24
Sub ModPerl::Const::BEGIN fid 34 lines 32..33
Sub APR::Status::BEGIN fid 29 lines 24..24
Sub ModPerl::RegistryCooker::namespace_from_filename fid 26 lines 325..332
Sub File::Basename::BEGIN fid 31 lines 367..390
Sub Apache2::Connection::BEGIN fid 19 lines 24..24
Sub File::Basename::basename fid 31 lines 212..235
Sub ModPerl::Const::dl_load_flags fid 34 lines 34..34
Sub ModPerl::RegistryCooker::run fid 26 lines 184..241
Sub Devel::NYTProf::Apache::child_init fid 1 lines 39..41
Sub ModPerl::RegistryCooker::default_handler fid 26 lines 154..174
Sub File::Spec::Unix::curdir fid 7 lines 111..111
Sub re::import fid 32 lines 124..127
Sub 
File::Spec::Functions::__ANON__[/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/File/Spec/Functions.pm:43]
 fid 4 lines 43..43
Sub ModPerl::Util::unload_package fid 13 lines 32..34
Sub Apache2::Const::BEGIN fid 33 lines 18..18
Sub ModPerl::RegistryCooker::strip_end_data_segment fid 26 lines 647..649
Sub File::Spec::Unix::catpath fid 7 lines 314..329
Sub XSLoader::bootstrap_inherit fid 39 lines 103..112
Sub File::Spec::Unix::file_name_is_absolute fid 7 lines 209..212
Sub constant::__ANON__[/usr/lib/perl5/5.8.8/constant.pm:106] fid 2 lines 
106..106
Sub File::Spec::Unix::tmpdir fid 7 lines 165..168
Sub Apache2::XSLoader::BEGIN fid 11 lines 22..26
Sub Apache2::Const::compile fid 33 lines 0..0
Sub Apache2::Log::BEGIN fid 18 lines 24..24
Sub base::has_attr fid 24 lines 30..34
Sub APR::Const::compile fid 35 lines 0..0
Sub APR::Const::BEGIN fid 35 lines 19..19
Sub APR::dl_load_flags fid 21 lines 26..26
Sub File::Spec::Unix::catdir fid 7 lines 83..87
Sub File::Spec::Functions::BEGIN fid 4 lines 42..42
Sub Apache2::ServerUtil::BEGIN fid 10 lines 24..24
Sub File::Spec::Unix::catfile fid 7 lines 96..103
Sub Apache2::ServerRec::push_handlers fid 17 lines 0..0
Sub File::Spec::Unix::join fid 7 lines 233..236
Sub base::get_attr fid 24 lines 36..39
Sub ModPerl::RegistryCooker::handler fid 26 lines 139..143
Sub 
ModPerl::Util::__ANON__[/usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ModPerl/Util.pm:72]
 fid 13 lines 72..72
Sub ModPerl::RegistryCooker::convert_script_to_compiled_handler fid 26 lines 
362..418
End of profile data for pid 20145 (0 remaining) at 1244015484.240980
: profiler_end_time = '1244015484.24098'
: profiler_duration = '1428.33441901207'
: total_stmts_measured = '2'
: total_stmts_discounted = '1'
: total_stmts_duration = '139.8416472'
: total_sub_calls = '2'
Summary: statements profiled 1 (2-1), sum of time 139.841647s, profile spanned 
1428.334419s
Writing report to nytprof directory
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.

Reply via email to