|
Posted by Henry McGuinness on December 6, 2005, 2:14 pm
Please log in for more thread options
Well, I'm just learning to use these 2 modules, but in the docs for DProf
(for perl 5.8.7, this note wasn't there a couple of Perl versions ago) it
says, under "Bugs":
"Another problem is that if(3,n) a subroutine exits using goto(LABEL),
last(LABEL) or next(LABEL) then perl may crash or Devel::DProf will die
with the error:
panic: Devel::DProf inconsistent subroutine return
For example, this code will break under Devel::DProf:
sub foo {
last FOO;
}
FOO: {
foo();
}
A pattern like this is used by Test::More's skip() function, for
exam-
ple. See perldiag for more details."
HTH
Henry
> Dear all,
>
> I encountered a problem while run profiling on a script which uses
> "Test::More". May I ask whether anybody have some idea or wrap around
> solution?
>
> perl -d:DProf test.pl
>
> Tom
|