Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/File/HomeDir/Driver.pm |
Statements | Executed 10 statements in 120µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 8µs | 8µs | BEGIN@6 | File::HomeDir::Driver::
1 | 1 | 1 | 5µs | 25µs | BEGIN@10 | File::HomeDir::Driver::
1 | 1 | 1 | 5µs | 6µs | BEGIN@7 | File::HomeDir::Driver::
1 | 1 | 1 | 2µs | 2µs | BEGIN@11 | File::HomeDir::Driver::
1 | 1 | 1 | 2µs | 2µs | BEGIN@8 | File::HomeDir::Driver::
0 | 0 | 0 | 0s | 0s | my_home | File::HomeDir::Driver::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package File::HomeDir::Driver; | ||||
2 | |||||
3 | # Abstract base class that provides no functionality, | ||||
4 | # but confirms the class is a File::HomeDir driver class. | ||||
5 | |||||
6 | 2 | 27µs | 1 | 8µs | # spent 8µs within File::HomeDir::Driver::BEGIN@6 which was called:
# once (8µs+0s) by File::HomeDir::Unix::BEGIN@8 at line 6 # spent 8µs making 1 call to File::HomeDir::Driver::BEGIN@6 |
7 | 2 | 11µs | 2 | 7µs | # spent 6µs (5+1) within File::HomeDir::Driver::BEGIN@7 which was called:
# once (5µs+1µs) by File::HomeDir::Unix::BEGIN@8 at line 7 # spent 6µs making 1 call to File::HomeDir::Driver::BEGIN@7
# spent 1µs making 1 call to strict::import |
8 | 2 | 14µs | 1 | 2µs | # spent 2µs within File::HomeDir::Driver::BEGIN@8 which was called:
# once (2µs+0s) by File::HomeDir::Unix::BEGIN@8 at line 8 # spent 2µs making 1 call to File::HomeDir::Driver::BEGIN@8 |
9 | |||||
10 | 2 | 21µs | 2 | 44µs | # spent 25µs (5+20) within File::HomeDir::Driver::BEGIN@10 which was called:
# once (5µs+20µs) by File::HomeDir::Unix::BEGIN@8 at line 10 # spent 25µs making 1 call to File::HomeDir::Driver::BEGIN@10
# spent 20µs making 1 call to vars::import |
11 | # spent 2µs within File::HomeDir::Driver::BEGIN@11 which was called:
# once (2µs+0s) by File::HomeDir::Unix::BEGIN@8 at line 13 | ||||
12 | 1 | 2µs | $VERSION = '1.00'; | ||
13 | 1 | 43µs | 1 | 2µs | } # spent 2µs making 1 call to File::HomeDir::Driver::BEGIN@11 |
14 | |||||
15 | sub my_home { | ||||
16 | Carp::croak("$_[0] does not implement compulsory method $_[1]"); | ||||
17 | } | ||||
18 | |||||
19 | 1 | 2µs | 1; | ||
20 | |||||
21 | =pod | ||||
22 | |||||
23 | =head1 NAME | ||||
24 | |||||
25 | File::HomeDir::Driver - Base class for all File::HomeDir drivers | ||||
26 | |||||
27 | =head1 DESCRIPTION | ||||
28 | |||||
29 | This module is the base class for all L<File::HomeDir> drivers, and must | ||||
30 | be inherited from to identify a class as a driver. | ||||
31 | |||||
32 | It is primarily provided as a convenience for this specific identification | ||||
33 | purpose, as L<File::HomeDir> supports the specification of custom drivers | ||||
34 | and an C<-E<gt>isa> check is used during the loading of the driver. | ||||
35 | |||||
36 | =head1 AUTHOR | ||||
37 | |||||
38 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
39 | |||||
40 | =head1 SEE ALSO | ||||
41 | |||||
42 | L<File::HomeDir> | ||||
43 | |||||
44 | =head1 COPYRIGHT | ||||
45 | |||||
46 | Copyright 2009 - 2011 Adam Kennedy. | ||||
47 | |||||
48 | This program is free software; you can redistribute | ||||
49 | it and/or modify it under the same terms as Perl itself. | ||||
50 | |||||
51 | The full text of the license can be found in the | ||||
52 | LICENSE file included with this module. | ||||
53 | |||||
54 | =cut |