Skip Menu |

This queue is for tickets about the Devel-Profiler CPAN distribution.

Report information
The Basics
Id: 1556
Status: open
Priority: 0/
Queue: Devel-Profiler

People
Owner: Nobody in particular
Requestors: pete [...] hero.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)



Subject: dprofpp craps out on tmon.out generated by Devel::Profiler
Tried to use Devel::Profiler in profiling a new module from CPAN. The tmon.out file that was output caused dprofpp to choke as follows: bash-2.04$ dprofpp -u tmon.out Modification of non-creatable array value attempted, subscript -1 at /usr/bin/dprofpp line 584, <fh> line 57. Perl 5.6.1, i686 linux, running a 2.4.2-2 kernel. Using Devel::DProf on the code snippet below works. The code, as follows (requires HTML::TagFilter) #!/usr/bin/perl use Devel::Profiler; use HTML::TagFilter; my %submits = (head => 'This is a <b>test of </b> head1', title => 'title goes here <img src="img">', desc => '<script>Script is a bug</script><br><p><a href="test" onclick="test">but href is ok - if there is no onclick</a><p>p is ok too, as is <b>bold</b> or <strong>strong</strong> and <i>italics</i> and <ul>underline</ul>.' ); my %parsed = (); my $tf = HTML::TagFilter->new(allow => {}, deny => {}); foreach $key (keys %submits) { $tf->parse($submits{$key}); $parsed{$key} = $tf->output(); } print "SUMMARY:\n\n"; foreach $k (keys %submits) { print "OLD: $submits{$k}\n"; print "NEW: $parsed{$k}\n"; print "----\n"; }
It seems that Devel::Profiler doesn't work with HTML::Parser. HTML::Parser is an XS module and as such it doesn't necessarily have to play by the rules that normal Perl modules play by. I'll look into it further at some point, but my expectations of a fix are low.
From: Alx Cardenas
[SAMTREGAR - Fri Sep 27 17:27:29 2002]: Show quoted text
> It seems that Devel::Profiler doesn't work with HTML::Parser. > HTML::Parser is an XS module and as such it doesn't necessarily have
to Show quoted text
> play by the rules that normal Perl modules play by. I'll look into it > further at some point, but my expectations of a fix are low.
Will this be solved or is there a way around it? I am trying to profile a cgi running under mod_perl and I get the same exact error. And yes, we do use HTML::Parser. Your help will be appreciated.