Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/HomeDir/Driver.pm |
Statements | Executed 10 statements in 164µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 16µs | 16µs | BEGIN@6 | File::HomeDir::Driver::
1 | 1 | 1 | 7µs | 32µs | BEGIN@10 | File::HomeDir::Driver::
1 | 1 | 1 | 6µs | 16µs | BEGIN@7 | File::HomeDir::Driver::
1 | 1 | 1 | 3µs | 3µs | BEGIN@11 | File::HomeDir::Driver::
1 | 1 | 1 | 3µs | 3µ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 | 36µs | 1 | 16µs | # spent 16µs within File::HomeDir::Driver::BEGIN@6 which was called:
# once (16µs+0s) by File::HomeDir::Unix::BEGIN@8 at line 6 # spent 16µs making 1 call to File::HomeDir::Driver::BEGIN@6 |
7 | 2 | 18µs | 2 | 27µs | # spent 16µs (6+11) within File::HomeDir::Driver::BEGIN@7 which was called:
# once (6µs+11µs) by File::HomeDir::Unix::BEGIN@8 at line 7 # spent 16µs making 1 call to File::HomeDir::Driver::BEGIN@7
# spent 11µs making 1 call to strict::import |
8 | 2 | 19µs | 1 | 3µs | # spent 3µs within File::HomeDir::Driver::BEGIN@8 which was called:
# once (3µs+0s) by File::HomeDir::Unix::BEGIN@8 at line 8 # spent 3µs making 1 call to File::HomeDir::Driver::BEGIN@8 |
9 | |||||
10 | 2 | 27µs | 2 | 57µs | # spent 32µs (7+25) within File::HomeDir::Driver::BEGIN@10 which was called:
# once (7µs+25µs) by File::HomeDir::Unix::BEGIN@8 at line 10 # spent 32µs making 1 call to File::HomeDir::Driver::BEGIN@10
# spent 25µs making 1 call to vars::import |
11 | # spent 3µs within File::HomeDir::Driver::BEGIN@11 which was called:
# once (3µs+0s) by File::HomeDir::Unix::BEGIN@8 at line 13 | ||||
12 | 1 | 7µs | $VERSION = '1.00'; | ||
13 | 1 | 56µs | 1 | 3µs | } # spent 3µ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 |