← Index
NYTProf Performance Profile   « line view »
For -e
  Run on Thu Jun 30 16:34:56 2016
Reported on Thu Jun 30 16:35: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 606µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1113.93ms4.13msRole::Tiny::With::::BEGIN@9Role::Tiny::With::BEGIN@9
11146µs54µsRole::Tiny::With::::BEGIN@3Role::Tiny::With::BEGIN@3
11112µs26µsRole::Tiny::With::::BEGIN@4Role::Tiny::With::BEGIN@4
11111µs22µsRole::Tiny::With::::BEGIN@11Role::Tiny::With::BEGIN@11
1116µs19.3msRole::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
3244µs262µ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
use strict;
# spent 54µs making 1 call to Role::Tiny::With::BEGIN@3 # spent 8µs making 1 call to strict::import
4271µs239µ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
use warnings;
# spent 26µs making 1 call to Role::Tiny::With::BEGIN@4 # spent 14µs making 1 call to warnings::import
5
61600nsour $VERSION = '2.000003';
7114µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
8
92376µs14.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
use Role::Tiny ();
# spent 4.13ms making 1 call to Role::Tiny::With::BEGIN@9
10
11289µs233µ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
use Exporter 'import';
# spent 22µs making 1 call to Role::Tiny::With::BEGIN@11 # spent 11µs making 1 call to Exporter::import
1211µsour @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
sub with {
151800ns my $target = caller;
1615µs119.3ms Role::Tiny->apply_roles_to_package($target, @_)
# spent 19.3ms making 1 call to Role::Tiny::apply_roles_to_package
17}
18
1914µ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