Profile of (eval 106)[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 106)[/home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm:1750]
Statements | Executed 60 statements in 374µ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 4 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
--- | --- | --- | --- | --- | ---
4 | 1 | 1 | 22µs | 22µs | XML::Twig::::__ANON__[:17]XML::Twig::__ANON__[:17] (merge of 4 subs)
1 | 1 | 1 | 6µs | 20µs | XML::Twig::::BEGIN@1.57XML::Twig::BEGIN@1.57
1 | 1 | 1 | 6µs | 16µs | XML::Twig::::BEGIN@1.50XML::Twig::BEGIN@1.50
1 | 1 | 1 | 6µs | 16µs | XML::Twig::::BEGIN@1.67XML::Twig::BEGIN@1.67
1 | 1 | 1 | 6µs | 16µs | XML::Twig::::BEGIN@1.60XML::Twig::BEGIN@1.60

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 | 8 | 338µs | 8 | 112µs | # spent 20µs (6+13) within XML::Twig::BEGIN@1.57 which was called: # once (6µs+13µs) by XML::Twig::_parse_xpath_handler at line 1 # spent 16µs (6+10) within XML::Twig::BEGIN@1.50 which was called: # once (6µs+10µs) by XML::Twig::_parse_xpath_handler at line 1 # spent 16µs (6+10) within XML::Twig::BEGIN@1.67 which was called: # once (6µs+10µs) by XML::Twig::_parse_xpath_handler at line 1 # spent 22µs within XML::Twig::__ANON__[(eval 106)[/home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/XML/Twig.pm:1750]:17] which was called 4 times, avg 6µs/call: # (data for this subroutine includes 3 others that were merged with it) # 4 times (22µs+0s) by XML::Twig::_handler at line 2405 of XML/Twig.pm, avg 6µs/call # spent 16µs (6+11) within XML::Twig::BEGIN@1.60 which was called: # once (6µs+11µs) by XML::Twig::_parse_xpath_handler at line 1 sub { no warnings; # spent 44µs making 4 calls to warnings::unimport, avg 11µs/call # spent 20µs making 1 call to XML::Twig::BEGIN@1.57 # spent 16µs making 1 call to XML::Twig::BEGIN@1.50 # spent 16µs making 1 call to XML::Twig::BEGIN@1.60 # spent 16µs making 1 call to XML::Twig::BEGIN@1.67
2 | 4 | 1µs |  |  | my( $stack)= @_;
3 | 4 | 2µs |  |  | my @current_elts= (scalar @$stack);
4 | 4 | 800ns |  |  | my @new_current_elts;
5 |  |  |  |  | my $elt;
6 |  |  |  |  |
7 | 4 | 2µs |  |  | foreach my $current_elt (@current_elts)
8 | 4 | 900ns |  |  | { next if( !$current_elt);
9 | 4 | 700ns |  |  | $current_elt--;
10 | 4 | 1µs |  |  | $elt= $stack->[$current_elt];
11 | 4 | 4µs |  |  | if( ($elt->{'##tag'} eq "s:dimension")) { push @new_current_elts, $current_elt;}
12 |  |  |  |  | }
13 | 4 | 900ns |  |  | unless( @new_current_elts) { return 0; }
14 | 4 | 1µs |  |  | @current_elts= @new_current_elts;
15 | 4 | 700ns |  |  | @new_current_elts=();
16 | 4 | 8µs |  |  | return q{s:dimension};
17 | 4 | 11µs |  |  | }
18 |  |  |  |  | ;