← Index
NYTProf Performance Profile   « line view »
For /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin/perlcritic
  Run on Sat Mar 19 22:12:22 2016
Reported on Sat Mar 19 22:14:11 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Statement/Break.pm
StatementsExecuted 9 statements in 102µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11111µs22µsPPI::Statement::Break::::BEGIN@40PPI::Statement::Break::BEGIN@40
1118µs8µsPPI::Statement::Break::::BEGIN@44PPI::Statement::Break::BEGIN@44
1116µs33µsPPI::Statement::Break::::BEGIN@43PPI::Statement::Break::BEGIN@43
1114µs4µsPPI::Statement::Break::::BEGIN@41PPI::Statement::Break::BEGIN@41
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package PPI::Statement::Break;
2
3=pod
4
5=head1 NAME
6
7PPI::Statement::Break - Statements which break out of normal statement flow
8
9=head1 SYNOPSIS
10
11 last;
12 goto FOO;
13 next if condition();
14 return $foo;
15 redo;
16
17=head1 INHERITANCE
18
19 PPI::Statement::Break
20 isa PPI::Statement
21 isa PPI::Node
22 isa PPI::Element
23
24=head1 DESCRIPTION
25
26C<PPI::Statement::Break> is intended to represent statements that break
27out of the normal statement flow control. This covers the basic
28types C<'redo'>, C<'goto'>, C<'next'>, C<'last'> and C<'return'>.
29
30=head1 METHODS
31
32C<PPI::Statement::Break> has no additional methods beyond the default ones
33provided by L<PPI::Statement>, L<PPI::Node> and L<PPI::Element>.
34
35However, it is expected to gain methods for identifying the line to break
36to, or the structure to break out of.
37
38=cut
39
40222µs233µs
# spent 22µs (11+11) within PPI::Statement::Break::BEGIN@40 which was called: # once (11µs+11µs) by PPI::Statement::BEGIN@162 at line 40
use strict;
# spent 22µs making 1 call to PPI::Statement::Break::BEGIN@40 # spent 11µs making 1 call to strict::import
41222µs14µs
# spent 4µs within PPI::Statement::Break::BEGIN@41 which was called: # once (4µs+0s) by PPI::Statement::BEGIN@162 at line 41
use PPI::Statement ();
# spent 4µs making 1 call to PPI::Statement::Break::BEGIN@41
42
43227µs259µs
# spent 33µs (6+26) within PPI::Statement::Break::BEGIN@43 which was called: # once (6µs+26µs) by PPI::Statement::BEGIN@162 at line 43
use vars qw{$VERSION @ISA};
# spent 33µs making 1 call to PPI::Statement::Break::BEGIN@43 # spent 26µs making 1 call to vars::import
44
# spent 8µs within PPI::Statement::Break::BEGIN@44 which was called: # once (8µs+0s) by PPI::Statement::BEGIN@162 at line 47
BEGIN {
451300ns $VERSION = '1.215';
4618µs @ISA = 'PPI::Statement';
47120µs18µs}
# spent 8µs making 1 call to PPI::Statement::Break::BEGIN@44
48
4912µs1;
50
51=pod
52
53=head1 TO DO
54
55- Add the methods to identify the break target
56
57- Add some proper unit testing
58
59=head1 SUPPORT
60
61See the L<support section|PPI/SUPPORT> in the main module.
62
63=head1 AUTHOR
64
65Adam Kennedy E<lt>adamk@cpan.orgE<gt>
66
67=head1 COPYRIGHT
68
69Copyright 2001 - 2011 Adam Kennedy.
70
71This program is free software; you can redistribute
72it and/or modify it under the same terms as Perl itself.
73
74The full text of the license can be found in the
75LICENSE file included with this module.
76
77=cut