← Index
NYTProf Performance Profile   « line view »
For /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin/perlcritic
  Run on Sat Mar 19 22:12:22 2016
Reported on Sat Mar 19 22:14:12 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Role/Tiny/With.pm
StatementsExecuted 40 statements in 326µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.43ms2.53msRole::Tiny::With::::BEGIN@9Role::Tiny::With::BEGIN@9
14141475µs10.6msRole::Tiny::With::::withRole::Tiny::With::with
11111µs23µsRole::Tiny::With::::BEGIN@3Role::Tiny::With::BEGIN@3
1119µs17µsRole::Tiny::With::::BEGIN@11Role::Tiny::With::BEGIN@11
1117µs10µsRole::Tiny::With::::BEGIN@4Role::Tiny::With::BEGIN@4
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
3220µs235µs
# spent 23µs (11+12) within Role::Tiny::With::BEGIN@3 which was called: # once (11µs+12µs) by Path::IsDev::HeuristicSet::Basic::BEGIN@24 at line 3
use strict;
# spent 23µs making 1 call to Role::Tiny::With::BEGIN@3 # spent 12µs making 1 call to strict::import
4234µs214µs
# spent 10µs (7+4) within Role::Tiny::With::BEGIN@4 which was called: # once (7µs+4µs) by Path::IsDev::HeuristicSet::Basic::BEGIN@24 at line 4
use warnings;
# spent 10µs making 1 call to Role::Tiny::With::BEGIN@4 # spent 4µs making 1 call to warnings::import
5
61500nsour $VERSION = '2.000001';
719µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
8
92115µs12.53ms
# spent 2.53ms (2.43+102µs) within Role::Tiny::With::BEGIN@9 which was called: # once (2.43ms+102µs) by Path::IsDev::HeuristicSet::Basic::BEGIN@24 at line 9
use Role::Tiny ();
# spent 2.53ms making 1 call to Role::Tiny::With::BEGIN@9
10
11263µs224µs
# spent 17µs (9+7) within Role::Tiny::With::BEGIN@11 which was called: # once (9µs+7µs) by Path::IsDev::HeuristicSet::Basic::BEGIN@24 at line 11
use Exporter 'import';
# spent 17µs making 1 call to Role::Tiny::With::BEGIN@11 # spent 7µs making 1 call to Exporter::import
121900nsour @EXPORT = qw( with );
13
14
# spent 10.6ms (75µs+10.5) within Role::Tiny::With::with which was called 14 times, avg 756µs/call: # once (5µs+2.00ms) by Module::Runtime::require_module at line 50 of Path/IsDev/NegativeHeuristic/IsDev/IgnoreFile.pm # once (8µs+1.50ms) by Module::Runtime::require_module at line 29 of Path/IsDev/Heuristic/TestDir.pm # once (4µs+1.45ms) by Module::Runtime::require_module at line 40 of Path/IsDev/Heuristic/Changelog.pm # once (6µs+1.41ms) by Module::Runtime::require_module at line 25 of Path/IsDev/HeuristicSet/Basic.pm # once (5µs+926µs) by Module::Runtime::require_module at line 34 of Path/IsDev/NegativeHeuristic/HomeDir.pm # once (4µs+803µs) by Module::Runtime::require_module at line 28 of Path/IsDev/Heuristic/Tool/Dzil.pm # once (6µs+345µs) by Module::Runtime::require_module at line 37 of Path/IsDev/Heuristic/MYMETA.pm # once (6µs+344µs) by Module::Runtime::require_module at line 29 of Path/IsDev/Heuristic/VCS/Git.pm # once (6µs+344µs) by Module::Runtime::require_module at line 41 of Path/IsDev/Heuristic/DevDirMarker.pm # once (6µs+343µs) by Module::Runtime::require_module at line 28 of Path/IsDev/Heuristic/Makefile.pm # once (7µs+298µs) by Module::Runtime::require_module at line 36 of Path/IsDev/NegativeHeuristic/PerlINC.pm # once (4µs+247µs) by Module::Runtime::require_module at line 28 of Path/IsDev/Heuristic/Tool/ModuleBuild.pm # once (4µs+246µs) by Module::Runtime::require_module at line 28 of Path/IsDev/Heuristic/Tool/MakeMaker.pm # once (4µs+245µs) by Module::Runtime::require_module at line 28 of Path/IsDev/Heuristic/META.pm
sub with {
15149µs my $target = caller;
161473µs1410.5ms Role::Tiny->apply_roles_to_package($target, @_)
# spent 10.5ms making 14 calls to Role::Tiny::apply_roles_to_package, avg 750µs/call
17}
18
1912µ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