Profile of (eval 102)[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 102)[/home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm:1750]
Statements | Executed 183 statements in 146µs
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

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
15 | 1 | 1 | 41µs | 41µs | XML::Twig::::__ANON__[:17]XML::Twig::__ANON__[:17]
1 | 1 | 1 | 6µs | 17µs | XML::Twig::::BEGIN@1.46XML::Twig::BEGIN@1.46

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 | 2 | 86µs | 2 | 28µs | # spent 17µs (6+11) within XML::Twig::BEGIN@1.46 which was called: # once (6µs+11µs) by XML::Twig::_parse_xpath_handler at line 1 # spent 41µs within XML::Twig::__ANON__[(eval 102)[/home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm:1750]:17] which was called 15 times, avg 3µs/call: # 15 times (41µs+0s) by XML::Twig::_handler at line 2405 of XML/Twig.pm, avg 3µs/call sub { no warnings; # spent 17µs making 1 call to XML::Twig::BEGIN@1.46 # spent 11µs making 1 call to warnings::unimport
2 | 15 | 2µs |  |  | my( $stack)= @_;
3 | 15 | 5µs |  |  | my @current_elts= (scalar @$stack);
4 | 15 | 1µs |  |  | my @new_current_elts;
5 |  |  |  |  | my $elt;
6 |  |  |  |  |
7 | 15 | 4µs |  |  | foreach my $current_elt (@current_elts)
8 | 15 | 1µs |  |  | { next if( !$current_elt);
9 | 15 | 1µs |  |  | $current_elt--;
10 | 15 | 3µs |  |  | $elt= $stack->[$current_elt];
11 | 15 | 8µs |  |  | if( ($elt->{'##tag'} eq "s:si")) { push @new_current_elts, $current_elt;}
12 |  |  |  |  | }
13 | 15 | 2µs |  |  | unless( @new_current_elts) { return 0; }
14 | 15 | 3µs |  |  | @current_elts= @new_current_elts;
15 | 15 | 2µs |  |  | @new_current_elts=();
16 | 15 | 26µs |  |  | return q{s:si};
17 | 1 | 3µs |  |  | }
18 |  |  |  |  | ;