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

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
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 7µs | 27µs | XML::Twig::::BEGIN@1.52XML::Twig::BEGIN@1.52
1 | 1 | 1 | 6µs | 17µs | XML::Twig::::BEGIN@1.62XML::Twig::BEGIN@1.62
0 | 0 | 0 | 0s | 0s | XML::Twig::::__ANON__[:17]XML::Twig::__ANON__[:17] (merge of 2 subs)

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 | 4 | 163µs | 4 | 74µs | # spent 17µs (6+11) within XML::Twig::BEGIN@1.62 which was called: # once (6µs+11µs) by XML::Twig::_parse_xpath_handler at line 1 # spent 27µs (7+20) within XML::Twig::BEGIN@1.52 which was called: # once (7µs+20µs) by XML::Twig::_parse_xpath_handler at line 1 sub { no warnings; # spent 31µs making 2 calls to warnings::unimport, avg 15µs/call # spent 27µs making 1 call to XML::Twig::BEGIN@1.52 # spent 17µs making 1 call to XML::Twig::BEGIN@1.62
2 |  |  |  |  | my( $stack)= @_;
3 |  |  |  |  | my @current_elts= (scalar @$stack);
4 |  |  |  |  | my @new_current_elts;
5 |  |  |  |  | my $elt;
6 |  |  |  |  |
7 |  |  |  |  | foreach my $current_elt (@current_elts)
8 |  |  |  |  | { next if( !$current_elt);
9 |  |  |  |  | $current_elt--;
10 |  |  |  |  | $elt= $stack->[$current_elt];
11 |  |  |  |  | if( ($elt->{'##tag'} eq "s:pageSetup")) { push @new_current_elts, $current_elt;}
12 |  |  |  |  | }
13 |  |  |  |  | unless( @new_current_elts) { return 0; }
14 |  |  |  |  | @current_elts= @new_current_elts;
15 |  |  |  |  | @new_current_elts=();
16 |  |  |  |  | return q{s:pageSetup};
17 | 2 | 6µs |  |  | }
18 |  |  |  |  | ;