← 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:10 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Token/Cast.pm
StatementsExecuted 70 statements in 409µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
6111392µs654µsPPI::Token::Cast::::__TOKENIZER__on_charPPI::Token::Cast::__TOKENIZER__on_char
11111µs23µsPPI::Token::Cast::::BEGIN@34PPI::Token::Cast::BEGIN@34
1118µs8µsPPI::Token::Cast::::BEGIN@38PPI::Token::Cast::BEGIN@38
1116µs34µsPPI::Token::Cast::::BEGIN@37PPI::Token::Cast::BEGIN@37
1113µs3µsPPI::Token::Cast::::BEGIN@35PPI::Token::Cast::BEGIN@35
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package PPI::Token::Cast;
2
3=pod
4
5=head1 NAME
6
7PPI::Token::Cast - A prefix which forces a value into a different context
8
9=head1 INHERITANCE
10
11 PPI::Token::Cast
12 isa PPI::Token
13 isa PPI::Element
14
15=head1 DESCRIPTION
16
17A "cast" in PPI terms is one of more characters used as a prefix which force
18a value into a different class or context.
19
20This includes referencing, dereferencing, and a few other minor cases.
21
22For expressions such as C<@$foo> or C<@{ $foo{bar} }> the C<@> in both cases
23represents a cast. In this case, an array dereference.
24
25=head1 METHODS
26
27There are no additional methods beyond those provided by the parent
28L<PPI::Token> and L<PPI::Element> classes.
29
30Got any ideas for methods? Submit a report to rt.cpan.org!
31
32=cut
33
34228µs235µs
# spent 23µs (11+12) within PPI::Token::Cast::BEGIN@34 which was called: # once (11µs+12µs) by PPI::Token::BEGIN@67 at line 34
use strict;
# spent 23µs making 1 call to PPI::Token::Cast::BEGIN@34 # spent 12µs making 1 call to strict::import
35219µs13µs
# spent 3µs within PPI::Token::Cast::BEGIN@35 which was called: # once (3µs+0s) by PPI::Token::BEGIN@67 at line 35
use PPI::Token ();
# spent 3µs making 1 call to PPI::Token::Cast::BEGIN@35
36
37236µs262µs
# spent 34µs (6+28) within PPI::Token::Cast::BEGIN@37 which was called: # once (6µs+28µs) by PPI::Token::BEGIN@67 at line 37
use vars qw{$VERSION @ISA};
# spent 34µs making 1 call to PPI::Token::Cast::BEGIN@37 # spent 28µs making 1 call to vars::import
38
# spent 8µs within PPI::Token::Cast::BEGIN@38 which was called: # once (8µs+0s) by PPI::Token::BEGIN@67 at line 41
BEGIN {
391300ns $VERSION = '1.215';
4018µs @ISA = 'PPI::Token';
41145µs18µs}
# spent 8µs making 1 call to PPI::Token::Cast::BEGIN@38
42
- -
46#####################################################################
47# Tokenizer Methods
48
49# A cast is either % @ $ or $#
50
# spent 654µs (392+262) within PPI::Token::Cast::__TOKENIZER__on_char which was called 61 times, avg 11µs/call: # 61 times (392µs+262µs) by PPI::Tokenizer::_process_next_char at line 554 of PPI/Tokenizer.pm, avg 11µs/call
sub __TOKENIZER__on_char {
5161271µs122262µs $_[1]->_finalize_token->__TOKENIZER__on_char( $_[1] );
# spent 137µs making 61 calls to PPI::Token::Whitespace::__TOKENIZER__on_char, avg 2µs/call # spent 125µs making 61 calls to PPI::Tokenizer::_finalize_token, avg 2µs/call
52}
53
5412µs1;
55
56=pod
57
58=head1 SUPPORT
59
60See the L<support section|PPI/SUPPORT> in the main module.
61
62=head1 AUTHOR
63
64Adam Kennedy E<lt>adamk@cpan.orgE<gt>
65
66=head1 COPYRIGHT
67
68Copyright 2001 - 2011 Adam Kennedy.
69
70This program is free software; you can redistribute
71it and/or modify it under the same terms as Perl itself.
72
73The full text of the license can be found in the
74LICENSE file included with this module.
75
76=cut