| Filename | /home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/x86_64-linux/Params/Validate.pm |
| Statements | Executed 26 statements in 825µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 964µs | 4.65ms | Params::Validate::BEGIN@11 |
| 1 | 1 | 1 | 444µs | 538µs | Params::Validate::BEGIN@12 |
| 1 | 1 | 1 | 23µs | 23µs | Params::Validate::BEGIN@3 |
| 1 | 1 | 1 | 9µs | 48µs | Params::Validate::BEGIN@10 |
| 1 | 1 | 1 | 9µs | 12µs | Params::Validate::BEGIN@5 |
| 1 | 1 | 1 | 8µs | 13µs | Params::Validate::BEGIN@6 |
| 1 | 1 | 1 | 8µs | 50µs | Params::Validate::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Params::Validate; | ||||
| 2 | |||||
| 3 | 2 | 50µs | 1 | 23µs | # spent 23µs within Params::Validate::BEGIN@3 which was called:
# once (23µs+0s) by DateTime::Duration::BEGIN@11 at line 3 # spent 23µs making 1 call to Params::Validate::BEGIN@3 |
| 4 | |||||
| 5 | 2 | 24µs | 2 | 15µs | # spent 12µs (9+3) within Params::Validate::BEGIN@5 which was called:
# once (9µs+3µs) by DateTime::Duration::BEGIN@11 at line 5 # spent 12µs making 1 call to Params::Validate::BEGIN@5
# spent 3µs making 1 call to strict::import |
| 6 | 2 | 44µs | 2 | 19µs | # spent 13µs (8+6) within Params::Validate::BEGIN@6 which was called:
# once (8µs+6µs) by DateTime::Duration::BEGIN@11 at line 6 # spent 13µs making 1 call to Params::Validate::BEGIN@6
# spent 6µs making 1 call to warnings::import |
| 7 | |||||
| 8 | 1 | 400ns | our $VERSION = '1.24'; | ||
| 9 | |||||
| 10 | 2 | 48µs | 2 | 86µs | # spent 48µs (9+39) within Params::Validate::BEGIN@10 which was called:
# once (9µs+39µs) by DateTime::Duration::BEGIN@11 at line 10 # spent 48µs making 1 call to Params::Validate::BEGIN@10
# spent 39µs making 1 call to Exporter::import |
| 11 | 2 | 225µs | 1 | 4.65ms | # spent 4.65ms (964µs+3.68) within Params::Validate::BEGIN@11 which was called:
# once (964µs+3.68ms) by DateTime::Duration::BEGIN@11 at line 11 # spent 4.65ms making 1 call to Params::Validate::BEGIN@11 |
| 12 | 2 | 249µs | 2 | 602µs | # spent 538µs (444+94) within Params::Validate::BEGIN@12 which was called:
# once (444µs+94µs) by DateTime::Duration::BEGIN@11 at line 12 # spent 538µs making 1 call to Params::Validate::BEGIN@12
# spent 64µs making 1 call to Exporter::import |
| 13 | |||||
| 14 | 2 | 152µs | 2 | 93µs | # spent 50µs (8+42) within Params::Validate::BEGIN@14 which was called:
# once (8µs+42µs) by DateTime::Duration::BEGIN@11 at line 14 # spent 50µs making 1 call to Params::Validate::BEGIN@14
# spent 42µs making 1 call to vars::import |
| 15 | |||||
| 16 | 1 | 6µs | our @ISA = 'Exporter'; | ||
| 17 | |||||
| 18 | 1 | 1µs | my @types = qw( | ||
| 19 | SCALAR | ||||
| 20 | ARRAYREF | ||||
| 21 | HASHREF | ||||
| 22 | CODEREF | ||||
| 23 | GLOB | ||||
| 24 | GLOBREF | ||||
| 25 | SCALARREF | ||||
| 26 | HANDLE | ||||
| 27 | BOOLEAN | ||||
| 28 | UNDEF | ||||
| 29 | OBJECT | ||||
| 30 | ); | ||||
| 31 | |||||
| 32 | 1 | 3µs | our %EXPORT_TAGS = ( | ||
| 33 | 'all' => [ | ||||
| 34 | qw( validate validate_pos validation_options validate_with ), | ||||
| 35 | @types | ||||
| 36 | ], | ||||
| 37 | types => \@types, | ||||
| 38 | ); | ||||
| 39 | |||||
| 40 | 1 | 2µs | our @EXPORT_OK = ( @{ $EXPORT_TAGS{all} }, 'set_options' ); | ||
| 41 | 1 | 400ns | our @EXPORT = qw( validate validate_pos ); | ||
| 42 | |||||
| 43 | 1 | 400ns | $NO_VALIDATION = $ENV{PERL_NO_VALIDATION}; | ||
| 44 | |||||
| 45 | { | ||||
| 46 | 2 | 4µs | 1 | 22µs | my $loader = Module::Implementation::build_loader_sub( # spent 22µs making 1 call to Module::Implementation::build_loader_sub |
| 47 | implementations => [ 'XS', 'PP' ], | ||||
| 48 | symbols => [ | ||||
| 49 | qw( | ||||
| 50 | validate | ||||
| 51 | validate_pos | ||||
| 52 | validate_with | ||||
| 53 | validation_options | ||||
| 54 | set_options | ||||
| 55 | ), | ||||
| 56 | ], | ||||
| 57 | ); | ||||
| 58 | |||||
| 59 | 1 | 500ns | $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'PP' if $ENV{PV_TEST_PERL}; | ||
| 60 | |||||
| 61 | 1 | 6µs | 1 | 915µs | $loader->(); # spent 915µs making 1 call to Module::Implementation::__ANON__[Module/Implementation.pm:52] |
| 62 | } | ||||
| 63 | |||||
| 64 | 1 | 9µs | 1; | ||
| 65 | |||||
| 66 | # ABSTRACT: Validate method/function parameters | ||||
| 67 | |||||
| 68 | __END__ |