develooper Front page | perl.perl5.porters | Postings from February 2009

DProf and threading ?

From:
Olivier Croquette
Date:
February 13, 2009 05:50
Subject:
DProf and threading ?
Message ID:
1234528987.49956adb26cf4@imp.free.fr
Hi !

I want to profile a threaded Perl program.

The only way I found to profile a Perl program is DProf, which looks very nice,
but when I start it on my thread program I get :

panic: Devel::DProf inconsistent subroutine return at
/xxx/perl/ActivePerl-5.10.0.1004-sun4-solaris-2.8-cc-287188/lib/threads/shared.pm
line 20.
Compilation failed in require at
/xxx/perl/ActivePerl-5.10.0.1004-sun4-solaris-2.8-cc-287188/lib/Thread.pm line
18.
BEGIN failed--compilation aborted at
/xxx/perl/ActivePerl-5.10.0.1004-sun4-solaris-2.8-cc-287188/lib/Thread.pm line
18.

Any chance to get DProf to work on a thread program ?
If not, are there any alternatives ?

Thanks for your help !

-- 
Olivier



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About