| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Perl/Critic/Utils/Constants.pm |
| Statements | Executed 27 statements in 337µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 17µs | 17µs | Perl::Critic::Utils::Constants::BEGIN@10 |
| 1 | 1 | 1 | 7µs | 13µs | Perl::Critic::Utils::Constants::BEGIN@17 |
| 1 | 1 | 1 | 7µs | 12µs | Perl::Critic::Utils::Constants::BEGIN@12 |
| 1 | 1 | 1 | 7µs | 29µs | Perl::Critic::Utils::Constants::BEGIN@13 |
| 1 | 1 | 1 | 7µs | 20µs | Perl::Critic::Utils::Constants::BEGIN@11 |
| 1 | 1 | 1 | 6µs | 72µs | Perl::Critic::Utils::Constants::BEGIN@15 |
| 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::Utils::Constants; | ||||
| 9 | |||||
| 10 | 2 | 40µs | 1 | 17µs | # spent 17µs within Perl::Critic::Utils::Constants::BEGIN@10 which was called:
# once (17µs+0s) by Perl::Critic::Command::BEGIN@26 at line 10 # spent 17µs making 1 call to Perl::Critic::Utils::Constants::BEGIN@10 |
| 11 | 2 | 19µs | 2 | 33µs | # spent 20µs (7+13) within Perl::Critic::Utils::Constants::BEGIN@11 which was called:
# once (7µs+13µs) by Perl::Critic::Command::BEGIN@26 at line 11 # spent 20µs making 1 call to Perl::Critic::Utils::Constants::BEGIN@11
# spent 13µs making 1 call to strict::import |
| 12 | 2 | 18µs | 2 | 17µs | # spent 12µs (7+5) within Perl::Critic::Utils::Constants::BEGIN@12 which was called:
# once (7µs+5µs) by Perl::Critic::Command::BEGIN@26 at line 12 # spent 12µs making 1 call to Perl::Critic::Utils::Constants::BEGIN@12
# spent 5µs making 1 call to warnings::import |
| 13 | 2 | 22µs | 2 | 51µs | # spent 29µs (7+22) within Perl::Critic::Utils::Constants::BEGIN@13 which was called:
# once (7µs+22µs) by Perl::Critic::Command::BEGIN@26 at line 13 # spent 29µs making 1 call to Perl::Critic::Utils::Constants::BEGIN@13
# spent 22µs making 1 call to Exporter::import |
| 14 | |||||
| 15 | 2 | 23µs | 2 | 137µs | # spent 72µs (6+65) within Perl::Critic::Utils::Constants::BEGIN@15 which was called:
# once (6µs+65µs) by Perl::Critic::Command::BEGIN@26 at line 15 # spent 72µs making 1 call to Perl::Critic::Utils::Constants::BEGIN@15
# spent 65µs making 1 call to Exporter::import |
| 16 | |||||
| 17 | 2 | 188µs | 2 | 18µs | # spent 13µs (7+6) within Perl::Critic::Utils::Constants::BEGIN@17 which was called:
# once (7µs+6µs) by Perl::Critic::Command::BEGIN@26 at line 17 # spent 13µs making 1 call to Perl::Critic::Utils::Constants::BEGIN@17
# spent 6µs making 1 call to Exporter::import |
| 18 | |||||
| 19 | 1 | 600ns | our $VERSION = '1.121'; | ||
| 20 | |||||
| 21 | #----------------------------------------------------------------------------- | ||||
| 22 | |||||
| 23 | 1 | 2µs | our @EXPORT_OK = qw{ | ||
| 24 | $PROFILE_STRICTNESS_WARN | ||||
| 25 | $PROFILE_STRICTNESS_FATAL | ||||
| 26 | $PROFILE_STRICTNESS_QUIET | ||||
| 27 | $PROFILE_STRICTNESS_DEFAULT | ||||
| 28 | %PROFILE_STRICTNESSES | ||||
| 29 | $PROFILE_COLOR_SEVERITY_HIGHEST_DEFAULT | ||||
| 30 | $PROFILE_COLOR_SEVERITY_HIGH_DEFAULT | ||||
| 31 | $PROFILE_COLOR_SEVERITY_MEDIUM_DEFAULT | ||||
| 32 | $PROFILE_COLOR_SEVERITY_LOW_DEFAULT | ||||
| 33 | $PROFILE_COLOR_SEVERITY_LOWEST_DEFAULT | ||||
| 34 | $_MODULE_VERSION_TERM_ANSICOLOR | ||||
| 35 | }; | ||||
| 36 | |||||
| 37 | 1 | 4µs | our %EXPORT_TAGS = ( | ||
| 38 | all => \@EXPORT_OK, | ||||
| 39 | profile_strictness => [ | ||||
| 40 | qw{ | ||||
| 41 | $PROFILE_STRICTNESS_WARN | ||||
| 42 | $PROFILE_STRICTNESS_FATAL | ||||
| 43 | $PROFILE_STRICTNESS_QUIET | ||||
| 44 | $PROFILE_STRICTNESS_DEFAULT | ||||
| 45 | %PROFILE_STRICTNESSES | ||||
| 46 | } | ||||
| 47 | ], | ||||
| 48 | color_severity => [ | ||||
| 49 | qw{ | ||||
| 50 | $PROFILE_COLOR_SEVERITY_HIGHEST_DEFAULT | ||||
| 51 | $PROFILE_COLOR_SEVERITY_HIGH_DEFAULT | ||||
| 52 | $PROFILE_COLOR_SEVERITY_MEDIUM_DEFAULT | ||||
| 53 | $PROFILE_COLOR_SEVERITY_LOW_DEFAULT | ||||
| 54 | $PROFILE_COLOR_SEVERITY_LOWEST_DEFAULT | ||||
| 55 | } | ||||
| 56 | ], | ||||
| 57 | ); | ||||
| 58 | |||||
| 59 | #----------------------------------------------------------------------------- | ||||
| 60 | |||||
| 61 | 1 | 2µs | 1 | 30µs | Readonly::Scalar our $PROFILE_STRICTNESS_WARN => 'warn'; # spent 30µs making 1 call to Readonly::Scalar |
| 62 | 1 | 900ns | 1 | 22µs | Readonly::Scalar our $PROFILE_STRICTNESS_FATAL => 'fatal'; # spent 22µs making 1 call to Readonly::Scalar |
| 63 | 1 | 800ns | 1 | 21µs | Readonly::Scalar our $PROFILE_STRICTNESS_QUIET => 'quiet'; # spent 21µs making 1 call to Readonly::Scalar |
| 64 | 1 | 900ns | 1 | 27µs | Readonly::Scalar our $PROFILE_STRICTNESS_DEFAULT => $PROFILE_STRICTNESS_WARN; # spent 27µs making 1 call to Readonly::Scalar |
| 65 | |||||
| 66 | 1 | 3µs | 2 | 40µs | Readonly::Hash our %PROFILE_STRICTNESSES => # spent 25µs making 1 call to Readonly::Hash
# spent 15µs making 1 call to Perl::Critic::Utils::hashify |
| 67 | hashify( | ||||
| 68 | $PROFILE_STRICTNESS_WARN, | ||||
| 69 | $PROFILE_STRICTNESS_FATAL, | ||||
| 70 | $PROFILE_STRICTNESS_QUIET, | ||||
| 71 | ); | ||||
| 72 | |||||
| 73 | 1 | 1µs | 1 | 21µs | Readonly::Scalar our $PROFILE_COLOR_SEVERITY_HIGHEST_DEFAULT => 'bold red'; # spent 21µs making 1 call to Readonly::Scalar |
| 74 | 1 | 1µs | 1 | 20µs | Readonly::Scalar our $PROFILE_COLOR_SEVERITY_HIGH_DEFAULT => 'magenta'; # spent 20µs making 1 call to Readonly::Scalar |
| 75 | 1 | 1µs | 1 | 24µs | Readonly::Scalar our $PROFILE_COLOR_SEVERITY_MEDIUM_DEFAULT => $EMPTY; # spent 24µs making 1 call to Readonly::Scalar |
| 76 | 1 | 800ns | 1 | 24µs | Readonly::Scalar our $PROFILE_COLOR_SEVERITY_LOW_DEFAULT => $EMPTY; # spent 24µs making 1 call to Readonly::Scalar |
| 77 | 1 | 800ns | 1 | 24µs | Readonly::Scalar our $PROFILE_COLOR_SEVERITY_LOWEST_DEFAULT => $EMPTY; # spent 24µs making 1 call to Readonly::Scalar |
| 78 | |||||
| 79 | # If the following changes, the corresponding change needs to be made in | ||||
| 80 | # inc/Perl/Critic/BuildUtilities.pm, sub recommended_module_versions(). | ||||
| 81 | 1 | 800ns | 1 | 20µs | Readonly::Scalar our $_MODULE_VERSION_TERM_ANSICOLOR => 2.02; # spent 20µs making 1 call to Readonly::Scalar |
| 82 | |||||
| 83 | #----------------------------------------------------------------------------- | ||||
| 84 | |||||
| 85 | 1 | 9µs | 1; | ||
| 86 | |||||
| 87 | __END__ |