| 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 606µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 3.93ms | 4.13ms | Role::Tiny::With::BEGIN@9 |
| 1 | 1 | 1 | 46µs | 54µs | Role::Tiny::With::BEGIN@3 |
| 1 | 1 | 1 | 12µs | 26µs | Role::Tiny::With::BEGIN@4 |
| 1 | 1 | 1 | 11µs | 22µs | Role::Tiny::With::BEGIN@11 |
| 1 | 1 | 1 | 6µs | 19.3ms | Role::Tiny::With::with |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Role::Tiny::With; | ||||
| 2 | |||||
| 3 | 2 | 44µs | 2 | 62µs | # spent 54µs (46+8) within Role::Tiny::With::BEGIN@3 which was called:
# once (46µs+8µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 3 # spent 54µs making 1 call to Role::Tiny::With::BEGIN@3
# spent 8µs making 1 call to strict::import |
| 4 | 2 | 71µs | 2 | 39µs | # spent 26µs (12+14) within Role::Tiny::With::BEGIN@4 which was called:
# once (12µs+14µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 4 # spent 26µs making 1 call to Role::Tiny::With::BEGIN@4
# spent 14µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 600ns | our $VERSION = '2.000003'; | ||
| 7 | 1 | 14µs | $VERSION = eval $VERSION; # spent 2µs executing statements in string eval | ||
| 8 | |||||
| 9 | 2 | 376µs | 1 | 4.13ms | # spent 4.13ms (3.93+200µs) within Role::Tiny::With::BEGIN@9 which was called:
# once (3.93ms+200µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 9 # spent 4.13ms making 1 call to Role::Tiny::With::BEGIN@9 |
| 10 | |||||
| 11 | 2 | 89µs | 2 | 33µs | # spent 22µs (11+11) within Role::Tiny::With::BEGIN@11 which was called:
# once (11µs+11µs) by DateTime::Format::Alami::EN::BEGIN@91 at line 11 # spent 22µs making 1 call to Role::Tiny::With::BEGIN@11
# spent 11µs making 1 call to Exporter::import |
| 12 | 1 | 1µs | our @EXPORT = qw( with ); | ||
| 13 | |||||
| 14 | # spent 19.3ms (6µs+19.3) within Role::Tiny::With::with which was called:
# once (6µs+19.3ms) by DateTime::Format::Alami::EN::BEGIN@92 at line 92 of lib/DateTime/Format/Alami/EN.pm | ||||
| 15 | 1 | 800ns | my $target = caller; | ||
| 16 | 1 | 5µs | 1 | 19.3ms | Role::Tiny->apply_roles_to_package($target, @_) # spent 19.3ms making 1 call to Role::Tiny::apply_roles_to_package |
| 17 | } | ||||
| 18 | |||||
| 19 | 1 | 4µ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 |