| Filename | /home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/Role/Tiny/With.pm |
| Statements | Executed 14 statements in 714µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 5.04ms | 5.26ms | Role::Tiny::With::BEGIN@9 |
| 1 | 1 | 1 | 34µs | 41µs | Role::Tiny::With::BEGIN@3 |
| 1 | 1 | 1 | 14µs | 27µs | Role::Tiny::With::BEGIN@11 |
| 1 | 1 | 1 | 12µs | 25µs | Role::Tiny::With::BEGIN@4 |
| 1 | 1 | 1 | 8µs | 25.4ms | Role::Tiny::With::with |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Role::Tiny::With; | ||||
| 2 | |||||
| 3 | 2 | 43µs | 2 | 48µs | # spent 41µs (34+7) within Role::Tiny::With::BEGIN@3 which was called:
# once (34µs+7µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 3 # spent 41µs making 1 call to Role::Tiny::With::BEGIN@3
# spent 7µs making 1 call to strict::import |
| 4 | 2 | 75µs | 2 | 38µs | # spent 25µs (12+13) within Role::Tiny::With::BEGIN@4 which was called:
# once (12µs+13µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 4 # spent 25µs making 1 call to Role::Tiny::With::BEGIN@4
# spent 13µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 700ns | our $VERSION = '2.000003'; | ||
| 7 | 1 | 19µs | $VERSION = eval $VERSION; # spent 3µs executing statements in string eval | ||
| 8 | |||||
| 9 | 2 | 451µs | 1 | 5.26ms | # spent 5.26ms (5.04+220µs) within Role::Tiny::With::BEGIN@9 which was called:
# once (5.04ms+220µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 9 # spent 5.26ms making 1 call to Role::Tiny::With::BEGIN@9 |
| 10 | |||||
| 11 | 2 | 112µs | 2 | 40µs | # spent 27µs (14+13) within Role::Tiny::With::BEGIN@11 which was called:
# once (14µs+13µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 11 # spent 27µs making 1 call to Role::Tiny::With::BEGIN@11
# spent 13µs making 1 call to Exporter::import |
| 12 | 1 | 2µs | our @EXPORT = qw( with ); | ||
| 13 | |||||
| 14 | # spent 25.4ms (8µs+25.4) within Role::Tiny::With::with which was called:
# once (8µs+25.4ms) by DateTime::Format::Alami::EN::BEGIN@92 at line 92 of DateTime/Format/Alami/EN.pm | ||||
| 15 | 1 | 1µs | my $target = caller; | ||
| 16 | 1 | 6µs | 1 | 25.4ms | Role::Tiny->apply_roles_to_package($target, @_) # spent 25.4ms making 1 call to Role::Tiny::apply_roles_to_package |
| 17 | } | ||||
| 18 | |||||
| 19 | 1 | 5µs | 1; | ||
| 20 | |||||
| 21 | =head1 NAME | ||||
| 22 | |||||
| 23 | Role::Tiny::With - Neat interface for consumers of Role::Tiny roles | ||||
| 24 | |||||
| 25 | =head1 SYNOPSIS | ||||
| 26 | |||||
| 27 | package Some::Class; | ||||
| 28 | |||||
| 29 | use Role::Tiny::With; | ||||
| 30 | |||||
| 31 | with 'Some::Role'; | ||||
| 32 | |||||
| 33 | # The role is now mixed in | ||||
| 34 | |||||
| 35 | =head1 DESCRIPTION | ||||
| 36 | |||||
| 37 | C<Role::Tiny> is a minimalist role composition tool. C<Role::Tiny::With> | ||||
| 38 | provides a C<with> function to compose such roles. | ||||
| 39 | |||||
| 40 | =head1 AUTHORS | ||||
| 41 | |||||
| 42 | See L<Role::Tiny> for authors. | ||||
| 43 | |||||
| 44 | =head1 COPYRIGHT AND LICENSE | ||||
| 45 | |||||
| 46 | See L<Role::Tiny> for the copyright and license. | ||||
| 47 | |||||
| 48 | =cut | ||||
| 49 | |||||
| 50 |