| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Perl/Critic/Exception/Configuration/Option.pm |
| Statements | Executed 12 statements in 231µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 24µs | 24µs | Perl::Critic::Exception::Configuration::Option::BEGIN@10 |
| 1 | 1 | 1 | 16µs | 20µs | Perl::Critic::Exception::Configuration::Option::BEGIN@12 |
| 1 | 1 | 1 | 9µs | 22µs | Perl::Critic::Exception::Configuration::Option::BEGIN@18 |
| 1 | 1 | 1 | 9µs | 247µs | Perl::Critic::Exception::Configuration::Option::BEGIN@20 |
| 1 | 1 | 1 | 7µs | 18µs | Perl::Critic::Exception::Configuration::Option::BEGIN@11 |
| 0 | 0 | 0 | 0s | 0s | Perl::Critic::Exception::Configuration::Option::error |
| 0 | 0 | 0 | 0s | 0s | Perl::Critic::Exception::Configuration::Option::full_message |
| 0 | 0 | 0 | 0s | 0s | Perl::Critic::Exception::Configuration::Option::message |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | ############################################################################## | ||||
| 2 | # $URL$ | ||||
| 3 | # $Date$ | ||||
| 4 | # $Author$ | ||||
| 5 | # $Revision$ | ||||
| 6 | ############################################################################## | ||||
| 7 | |||||
| 8 | package Perl::Critic::Exception::Configuration::Option; | ||||
| 9 | |||||
| 10 | 2 | 49µs | 1 | 24µs | # spent 24µs within Perl::Critic::Exception::Configuration::Option::BEGIN@10 which was called:
# once (24µs+0s) by base::import at line 10 # spent 24µs making 1 call to Perl::Critic::Exception::Configuration::Option::BEGIN@10 |
| 11 | 2 | 28µs | 2 | 29µs | # spent 18µs (7+11) within Perl::Critic::Exception::Configuration::Option::BEGIN@11 which was called:
# once (7µs+11µs) by base::import at line 11 # spent 18µs making 1 call to Perl::Critic::Exception::Configuration::Option::BEGIN@11
# spent 11µs making 1 call to strict::import |
| 12 | 2 | 28µs | 2 | 24µs | # spent 20µs (16+4) within Perl::Critic::Exception::Configuration::Option::BEGIN@12 which was called:
# once (16µs+4µs) by base::import at line 12 # spent 20µs making 1 call to Perl::Critic::Exception::Configuration::Option::BEGIN@12
# spent 4µs making 1 call to warnings::import |
| 13 | |||||
| 14 | 1 | 300ns | our $VERSION = '1.121'; | ||
| 15 | |||||
| 16 | #----------------------------------------------------------------------------- | ||||
| 17 | |||||
| 18 | 2 | 36µs | 2 | 34µs | # spent 22µs (9+12) within Perl::Critic::Exception::Configuration::Option::BEGIN@18 which was called:
# once (9µs+12µs) by base::import at line 18 # spent 22µs making 1 call to Perl::Critic::Exception::Configuration::Option::BEGIN@18
# spent 12µs making 1 call to Exporter::import |
| 19 | |||||
| 20 | # spent 247µs (9+238) within Perl::Critic::Exception::Configuration::Option::BEGIN@20 which was called:
# once (9µs+238µs) by base::import at line 26 | ||||
| 21 | 1 | 200ns | 'Perl::Critic::Exception::Configuration::Option' => { | ||
| 22 | isa => 'Perl::Critic::Exception::Configuration', | ||||
| 23 | description => 'A problem with an option in the Perl::Critic configuration, whether from a file or a command line or some other source.', | ||||
| 24 | fields => [ qw{ option_name option_value message_suffix } ], | ||||
| 25 | }, | ||||
| 26 | 1 | 87µs | 2 | 247µs | ); # spent 247µs making 1 call to Perl::Critic::Exception::Configuration::Option::BEGIN@20
# spent 238µs making 1 call to Exception::Class::import, recursion: max depth 2, sum of overlapping time 238µs |
| 27 | |||||
| 28 | #----------------------------------------------------------------------------- | ||||
| 29 | |||||
| 30 | sub message { | ||||
| 31 | my $self = shift; | ||||
| 32 | |||||
| 33 | return $self->full_message(); | ||||
| 34 | } | ||||
| 35 | |||||
| 36 | #----------------------------------------------------------------------------- | ||||
| 37 | |||||
| 38 | sub error { | ||||
| 39 | my $self = shift; | ||||
| 40 | |||||
| 41 | return $self->full_message(); | ||||
| 42 | } | ||||
| 43 | |||||
| 44 | #----------------------------------------------------------------------------- | ||||
| 45 | |||||
| 46 | ## no critic (Subroutines::RequireFinalReturn) | ||||
| 47 | sub full_message { | ||||
| 48 | Perl::Critic::Exception::Fatal::Internal->throw( | ||||
| 49 | 'Subclass failed to override abstract method.' | ||||
| 50 | ); | ||||
| 51 | } | ||||
| 52 | ## use critic | ||||
| 53 | |||||
| 54 | |||||
| 55 | 1 | 2µs | 1; | ||
| 56 | |||||
| 57 | __END__ |