Filename | /usr/share/perl5/Date/Manip.pm |
Statements | Executed 20 statements in 263µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 13µs | 20µs | BEGIN@9 | Date::Manip::
1 | 1 | 1 | 6µs | 19µs | BEGIN@11 | Date::Manip::
1 | 1 | 1 | 6µs | 15µs | BEGIN@39 | Date::Manip::
1 | 1 | 1 | 5µs | 15µs | BEGIN@10 | Date::Manip::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Date::Manip; | ||||
2 | # Copyright (c) 2010-2014 Sullivan Beck. All rights reserved. | ||||
3 | # This program is free software; you can redistribute it and/or modify it | ||||
4 | # under the same terms as Perl itself. | ||||
5 | |||||
6 | ########################################################################### | ||||
7 | ########################################################################### | ||||
8 | |||||
9 | 2 | 25µs | 2 | 27µs | # spent 20µs (13+7) within Date::Manip::BEGIN@9 which was called:
# once (13µs+7µs) by C4::Overdues::BEGIN@25 at line 9 # spent 20µs making 1 call to Date::Manip::BEGIN@9
# spent 7µs making 1 call to warnings::import |
10 | 2 | 23µs | 2 | 24µs | # spent 15µs (5+9) within Date::Manip::BEGIN@10 which was called:
# once (5µs+9µs) by C4::Overdues::BEGIN@25 at line 10 # spent 15µs making 1 call to Date::Manip::BEGIN@10
# spent 9µs making 1 call to strict::import |
11 | 2 | 113µs | 2 | 32µs | # spent 19µs (6+13) within Date::Manip::BEGIN@11 which was called:
# once (6µs+13µs) by C4::Overdues::BEGIN@25 at line 11 # spent 19µs making 1 call to Date::Manip::BEGIN@11
# spent 13µs making 1 call to Exporter::import |
12 | |||||
13 | 1 | 100ns | our $VERSION; | ||
14 | 1 | 300ns | $VERSION='6.47'; | ||
15 | |||||
16 | 1 | 200ns | our (@ISA,@EXPORT); | ||
17 | |||||
18 | 1 | 100ns | my $backend; | ||
19 | |||||
20 | 1 | 2µs | if ((exists $ENV{'DATE_MANIP'} && $ENV{'DATE_MANIP'} eq 'DM5') || | ||
21 | (defined $Date::Manip::Backend && $Date::Manip::Backend eq 'DM5')) { | ||||
22 | $backend = 'Date::Manip::DM5'; | ||||
23 | |||||
24 | } elsif ($] >= 5.010) { | ||||
25 | $backend = 'Date::Manip::DM6'; | ||||
26 | |||||
27 | } else { | ||||
28 | $backend = 'Date::Manip::DM5'; | ||||
29 | } | ||||
30 | |||||
31 | 1 | 600ns | my $backend_exp = $backend . "::EXPORT"; | ||
32 | |||||
33 | 1 | 26µs | my $flag = eval "require $backend; $backend->import(); return 'loaded';"; # spent 687µs executing statements in string eval | ||
34 | 1 | 300ns | if (! $flag) { | ||
35 | die "ERROR LOADING MODULE: $backend"; | ||||
36 | } | ||||
37 | |||||
38 | { | ||||
39 | 3 | 50µs | 2 | 25µs | # spent 15µs (6+9) within Date::Manip::BEGIN@39 which was called:
# once (6µs+9µs) by C4::Overdues::BEGIN@25 at line 39 # spent 15µs making 1 call to Date::Manip::BEGIN@39
# spent 9µs making 1 call to strict::unimport |
40 | 1 | 4µs | @EXPORT = @{ $backend_exp }; | ||
41 | } | ||||
42 | |||||
43 | 1 | 8µs | unshift (@ISA, $backend); | ||
44 | |||||
45 | 1 | 10µs | 1; | ||
46 | # Local Variables: | ||||
47 | # mode: cperl | ||||
48 | # indent-tabs-mode: nil | ||||
49 | # cperl-indent-level: 3 | ||||
50 | # cperl-continued-statement-offset: 2 | ||||
51 | # cperl-continued-brace-offset: 0 | ||||
52 | # cperl-brace-offset: 0 | ||||
53 | # cperl-brace-imaginary-offset: 0 | ||||
54 | # cperl-label-offset: 0 | ||||
55 | # End: |