← 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
StatementsExecuted 14 statements in 714µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1115.04ms5.26msRole::Tiny::With::::BEGIN@9Role::Tiny::With::BEGIN@9
11134µs41µsRole::Tiny::With::::BEGIN@3Role::Tiny::With::BEGIN@3
11114µs27µsRole::Tiny::With::::BEGIN@11Role::Tiny::With::BEGIN@11
11112µs25µsRole::Tiny::With::::BEGIN@4Role::Tiny::With::BEGIN@4
1118µs25.4msRole::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
1package Role::Tiny::With;
2
3243µs248µ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
4275µs238µ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
61700nsour $VERSION = '2.000003';
7119µs$VERSION = eval $VERSION;
# spent 3µs executing statements in string eval
8
92451µs15.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
112112µs240µ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
1212µsour @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 {
1511µs my $target = caller;
1616µs125.4ms Role::Tiny->apply_roles_to_package($target, @_)
# spent 25.4ms making 1 call to Role::Tiny::apply_roles_to_package
17}
18
1915µs1;
20
21=head1 NAME
22
23Role::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
37C<Role::Tiny> is a minimalist role composition tool. C<Role::Tiny::With>
38provides a C<with> function to compose such roles.
39
40=head1 AUTHORS
41
42See L<Role::Tiny> for authors.
43
44=head1 COPYRIGHT AND LICENSE
45
46See L<Role::Tiny> for the copyright and license.
47
48=cut
49
50