| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Structure/Block.pm |
| Statements | Executed 9 statements in 111µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 12µs | 24µs | PPI::Structure::Block::BEGIN@45 |
| 1 | 1 | 1 | 8µs | 8µs | PPI::Structure::Block::BEGIN@49 |
| 1 | 1 | 1 | 7µs | 37µs | PPI::Structure::Block::BEGIN@48 |
| 1 | 1 | 1 | 3µs | 3µs | PPI::Structure::Block::BEGIN@46 |
| 0 | 0 | 0 | 0s | 0s | PPI::Structure::Block::scope |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package PPI::Structure::Block; | ||||
| 2 | |||||
| 3 | =pod | ||||
| 4 | |||||
| 5 | =head1 NAME | ||||
| 6 | |||||
| 7 | PPI::Structure::Block - Curly braces representing a code block | ||||
| 8 | |||||
| 9 | =head1 SYNOPSIS | ||||
| 10 | |||||
| 11 | sub foo { ... } | ||||
| 12 | |||||
| 13 | grep { ... } @list; | ||||
| 14 | |||||
| 15 | if ( condition ) { | ||||
| 16 | ... | ||||
| 17 | } | ||||
| 18 | |||||
| 19 | LABEL: { | ||||
| 20 | ... | ||||
| 21 | } | ||||
| 22 | |||||
| 23 | =head1 INHERITANCE | ||||
| 24 | |||||
| 25 | PPI::Structure::Block | ||||
| 26 | isa PPI::Structure | ||||
| 27 | isa PPI::Node | ||||
| 28 | isa PPI::Element | ||||
| 29 | |||||
| 30 | =head1 DESCRIPTION | ||||
| 31 | |||||
| 32 | C<PPI::Structure::Block> is the class used for all curly braces that | ||||
| 33 | represent code blocks. This includes subroutines, compound statements | ||||
| 34 | and any other block braces. | ||||
| 35 | |||||
| 36 | =head1 METHODS | ||||
| 37 | |||||
| 38 | C<PPI::Structure::Block> has no methods beyond those provided by the | ||||
| 39 | standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods. | ||||
| 40 | |||||
| 41 | Got any ideas for methods? Submit a report to rt.cpan.org! | ||||
| 42 | |||||
| 43 | =cut | ||||
| 44 | |||||
| 45 | 2 | 19µs | 2 | 36µs | # spent 24µs (12+12) within PPI::Structure::Block::BEGIN@45 which was called:
# once (12µs+12µs) by PPI::Structure::BEGIN@104 at line 45 # spent 24µs making 1 call to PPI::Structure::Block::BEGIN@45
# spent 12µs making 1 call to strict::import |
| 46 | 2 | 19µs | 1 | 3µs | # spent 3µs within PPI::Structure::Block::BEGIN@46 which was called:
# once (3µs+0s) by PPI::Structure::BEGIN@104 at line 46 # spent 3µs making 1 call to PPI::Structure::Block::BEGIN@46 |
| 47 | |||||
| 48 | 2 | 28µs | 2 | 68µs | # spent 37µs (7+31) within PPI::Structure::Block::BEGIN@48 which was called:
# once (7µs+31µs) by PPI::Structure::BEGIN@104 at line 48 # spent 37µs making 1 call to PPI::Structure::Block::BEGIN@48
# spent 31µs making 1 call to vars::import |
| 49 | # spent 8µs within PPI::Structure::Block::BEGIN@49 which was called:
# once (8µs+0s) by PPI::Structure::BEGIN@104 at line 52 | ||||
| 50 | 1 | 400ns | $VERSION = '1.215'; | ||
| 51 | 1 | 8µs | @ISA = 'PPI::Structure'; | ||
| 52 | 1 | 34µs | 1 | 8µs | } # spent 8µs making 1 call to PPI::Structure::Block::BEGIN@49 |
| 53 | |||||
| - - | |||||
| 58 | ##################################################################### | ||||
| 59 | # PPI::Element Methods | ||||
| 60 | |||||
| 61 | # This is a scope boundary | ||||
| 62 | sub scope { 1 } | ||||
| 63 | |||||
| 64 | 1 | 2µs | 1; | ||
| 65 | |||||
| 66 | =pod | ||||
| 67 | |||||
| 68 | =head1 SUPPORT | ||||
| 69 | |||||
| 70 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
| 71 | |||||
| 72 | =head1 AUTHOR | ||||
| 73 | |||||
| 74 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
| 75 | |||||
| 76 | =head1 COPYRIGHT | ||||
| 77 | |||||
| 78 | Copyright 2001 - 2011 Adam Kennedy. | ||||
| 79 | |||||
| 80 | This program is free software; you can redistribute | ||||
| 81 | it and/or modify it under the same terms as Perl itself. | ||||
| 82 | |||||
| 83 | The full text of the license can be found in the | ||||
| 84 | LICENSE file included with this module. | ||||
| 85 | |||||
| 86 | =cut |