Re: "Devel::DProf" on a PERL script uses "Test::More"
- From: "Henry McGuinness" <henry.mcguinness@xxxxxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 14:14:18 -0000
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
"Tom" <chi.lun@xxxxxxxxx> wrote in message
news:1133833019.183937.294740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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
.
- Follow-Ups:
- References:
- Prev by Date: "Devel::DProf" on a PERL script uses "Test::More"
- Next by Date: Robot Perl module
- Previous by thread: "Devel::DProf" on a PERL script uses "Test::More"
- Next by thread: Re: "Devel::DProf" on a PERL script uses "Test::More"
- Index(es):
Relevant Pages
|
|