← 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/Null.pm
StatementsExecuted 9 statements in 111µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11112µs24µsPPI::Statement::Null::::BEGIN@43PPI::Statement::Null::BEGIN@43
11110µs38µsPPI::Statement::Null::::BEGIN@46PPI::Statement::Null::BEGIN@46
1118µs8µsPPI::Statement::Null::::BEGIN@47PPI::Statement::Null::BEGIN@47
1113µs3µsPPI::Statement::Null::::BEGIN@44PPI::Statement::Null::BEGIN@44
0000s0sPPI::Statement::Null::::significantPPI::Statement::Null::significant
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::Null;
2
3=pod
4
5=head1 NAME
6
7PPI::Statement::Null - A useless null statement
8
9=head1 SYNOPSIS
10
11 my $foo = 1;
12
13 ; # <-- Null statement
14
15 my $bar = 1;
16
17=head1 INHERITANCE
18
19 PPI::Statement::Null
20 isa PPI::Statement
21 isa PPI::Node
22 isa PPI::Element
23
24=head1 DESCRIPTION
25
26C<PPI::Statement::Null> is a utility class designed to handle situations
27where PPI encounters a naked statement separator.
28
29Although strictly speaking, the semicolon is a statement B<separator>
30and not a statement B<terminator>, PPI considers a semicolon to be a
31statement terminator under most circumstances.
32
33In any case, the null statement has no purpose, and can be safely deleted
34with no ill effect.
35
36=head1 METHODS
37
38C<PPI::Statement::Null> has no additional methods beyond the default ones
39provided by L<PPI::Statement>, L<PPI::Node> and L<PPI::Element>.
40
41=cut
42
43220µs236µs
# spent 24µs (12+12) within PPI::Statement::Null::BEGIN@43 which was called: # once (12µs+12µs) by PPI::Statement::BEGIN@168 at line 43
use strict;
# spent 24µs making 1 call to PPI::Statement::Null::BEGIN@43 # spent 12µs making 1 call to strict::import
44218µs13µs
# spent 3µs within PPI::Statement::Null::BEGIN@44 which was called: # once (3µs+0s) by PPI::Statement::BEGIN@168 at line 44
use PPI::Statement ();
# spent 3µs making 1 call to PPI::Statement::Null::BEGIN@44
45
46228µs265µs
# spent 38µs (10+28) within PPI::Statement::Null::BEGIN@46 which was called: # once (10µs+28µs) by PPI::Statement::BEGIN@168 at line 46
use vars qw{$VERSION @ISA};
# spent 38µs making 1 call to PPI::Statement::Null::BEGIN@46 # spent 28µs making 1 call to vars::import
47
# spent 8µs within PPI::Statement::Null::BEGIN@47 which was called: # once (8µs+0s) by PPI::Statement::BEGIN@168 at line 50
BEGIN {
481400ns $VERSION = '1.215';
49112µs @ISA = 'PPI::Statement';
50131µs18µs}
# spent 8µs making 1 call to PPI::Statement::Null::BEGIN@47
51
52# A null statement is not significant
53sub significant { '' }
54
5512µs1;
56
57=pod
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