Subject: | Test::More & NYTProf problem |
NYTProf is fooled by #line directives into looking for a file that does
not exist. This is a general problem profiling anything using Test::More.
$ cat ~/tmp/test.plx
#!/usr/bin/perl -w
use Test::More tests => 1;
is 1, 1;
$ perl -d:NYTProf ~/tmp/test.plx
1..1
ok 1
$ nytprofhtml
Generating report...
Reading nytprof.out
Writing report to nytprof directory
Unable to open '/Users/schwern/devel/Test-Simple/cmp_ok [from
/Users/schwern/tmp/test.plx line 4]' for reading: No such file or
directory. Try running /usr/local/bin/nytprofhtml in the same directory
as you ran Devel::NYTProf, or ensure @INC is correct.
Ignoring '#line 1 "cmp_ok [from $file line $line]"' directive at line
838 - profile data for /usr/local/perl/5.10.0/lib/5.10.0/Test/Builder.pm
will be out of sync with source!