Profile of Role/Tiny/With.pm

← Index
NYTProf Performance Profile «line view»
For -e
Run on Thu Jun 30 16:16:00 2016
Reported on Thu Jun 30 16:16:08 2016

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

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 5.04ms | 5.26ms | Role::Tiny::With::::BEGIN@9Role::Tiny::With::BEGIN@9
1 | 1 | 1 | 34µs | 41µs | Role::Tiny::With::::BEGIN@3Role::Tiny::With::BEGIN@3
1 | 1 | 1 | 14µs | 27µs | Role::Tiny::With::::BEGIN@11Role::Tiny::With::BEGIN@11
1 | 1 | 1 | 12µs | 25µs | Role::Tiny::With::::BEGIN@4Role::Tiny::With::BEGIN@4
1 | 1 | 1 | 8µs | 25.4ms | Role::Tiny::With::::withRole::Tiny::With::with

Call graph for these subroutines as a Graphviz dot language file.

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 use strict; # 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 use warnings; # 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 use Role::Tiny (); # 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 use Exporter 'import'; # 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 sub with {
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 |  |  |  |  |