Profile of (eval 114)[XML/Twig.pm:1750]

← Index
NYTProf Performance Profile
For t/bug-md-11.t
Run on Fri Mar 8 13:27:24 2024
Reported on Fri Mar 8 13:30:23 2024

Filename | (eval 114)[/home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm:1750]
Statements | Executed 624326 statements in 269ms
Eval Invoked At | /home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm line 1750
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

NOTE!
The data used to generate this report page was merged from 2 of the 21 executions
of the string eval on line 1750 of /home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm.

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
31216 | 1 | 1 | 149ms | 149ms | XML::Twig::::__ANON__[:26]XML::Twig::__ANON__[:26] (merge of 2 subs)
1 | 1 | 1 | 6µs | 17µs | XML::Twig::::BEGIN@1.58XML::Twig::BEGIN@1.58
1 | 1 | 1 | 6µs | 16µs | XML::Twig::::BEGIN@1.68XML::Twig::BEGIN@1.68

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 | 4 | 226µs | 4 | 54µs | # spent 17µs (6+10) within XML::Twig::BEGIN@1.58 which was called: # once (6µs+10µs) by XML::Twig::_parse_xpath_handler at line 1 # spent 149ms within XML::Twig::__ANON__[(eval 114)[/home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm:1750]:26] which was called 31216 times, avg 5µs/call: # (data for this subroutine includes 1 others that were merged with it) # 31216 times (149ms+0s) by XML::Twig::_handler at line 2405 of XML/Twig.pm, avg 5µs/call # spent 16µs (6+10) within XML::Twig::BEGIN@1.68 which was called: # once (6µs+10µs) by XML::Twig::_parse_xpath_handler at line 1 sub { no warnings; # spent 21µs making 2 calls to warnings::unimport, avg 10µs/call # spent 17µs making 1 call to XML::Twig::BEGIN@1.58 # spent 16µs making 1 call to XML::Twig::BEGIN@1.68
2 | 31216 | 3.50ms |  |  | my( $stack)= @_;
3 | 31216 | 11.1ms |  |  | my @current_elts= (scalar @$stack);
4 | 31216 | 3.57ms |  |  | my @new_current_elts;
5 |  |  |  |  | my $elt;
6 |  |  |  |  |
7 | 31216 | 8.67ms |  |  | foreach my $current_elt (@current_elts)
8 | 31216 | 3.52ms |  |  | { next if( !$current_elt);
9 | 31216 | 3.64ms |  |  | $current_elt--;
10 | 31216 | 7.20ms |  |  | $elt= $stack->[$current_elt];
11 | 31216 | 23.0ms |  |  | if( ($elt->{'##tag'} eq "s:row")) { push @new_current_elts, $current_elt;}
12 |  |  |  |  | }
13 | 31216 | 4.14ms |  |  | unless( @new_current_elts) { return 0; }
14 | 31216 | 9.27ms |  |  | @current_elts= @new_current_elts;
15 | 31216 | 5.88ms |  |  | @new_current_elts=();
16 | 31216 | 6.21ms |  |  | foreach my $current_elt (@current_elts)
17 | 31216 | 2.88ms |  |  | { next if( !$current_elt);
18 | 31216 | 2.44ms |  |  | $current_elt--;
19 | 31216 | 5.91ms |  |  | $elt= $stack->[$current_elt];
20 | 31216 | 12.5ms |  |  | if( ($elt->{'##tag'} eq "s:sheetData")) { push @new_current_elts, $current_elt;}
21 |  |  |  |  | }
22 | 31216 | 3.09ms |  |  | unless( @new_current_elts) { return 0; }
23 | 31216 | 5.37ms |  |  | @current_elts= @new_current_elts;
24 | 31216 | 3.88ms |  |  | @new_current_elts=();
25 | 31216 | 143ms |  |  | return q{s:sheetData/s:row};
26 | 2 | 6µs |  |  | }
27 |  |  |  |  | ;