← Index
NYTProf Performance Profile   « line view »
For ../prof.pl
  Run on Wed Dec 14 15:33:55 2022
Reported on Wed Dec 14 15:40:04 2022

Filename/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Role/Tiny/With.pm
StatementsExecuted 16 statements in 281µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11130µs33µsRole::Tiny::With::::BEGIN@3Role::Tiny::With::BEGIN@3
22217µs6.54msRole::Tiny::With::::withRole::Tiny::With::with
11110µs108µsRole::Tiny::With::::BEGIN@11Role::Tiny::With::BEGIN@11
11110µs39µsRole::Tiny::With::::BEGIN@4Role::Tiny::With::BEGIN@4
1113µs3µsRole::Tiny::With::::BEGIN@9Role::Tiny::With::BEGIN@9
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
3235µs236µs
# spent 33µs (30+3) within Role::Tiny::With::BEGIN@3 which was called: # once (30µs+3µs) by Data::Perl::Collection::Array::MooseLike::BEGIN@7 at line 3
use strict;
# spent 33µs making 1 call to Role::Tiny::With::BEGIN@3 # spent 3µs making 1 call to strict::import
4260µs268µs
# spent 39µs (10+29) within Role::Tiny::With::BEGIN@4 which was called: # once (10µs+29µs) by Data::Perl::Collection::Array::MooseLike::BEGIN@7 at line 4
use warnings;
# spent 39µs making 1 call to Role::Tiny::With::BEGIN@4 # spent 29µs making 1 call to warnings::import
5
611µsour $VERSION = '2.002004';
712µs$VERSION =~ tr/_//d;
8
9220µs13µs
# spent 3µs within Role::Tiny::With::BEGIN@9 which was called: # once (3µs+0s) by Data::Perl::Collection::Array::MooseLike::BEGIN@7 at line 9
use Role::Tiny ();
# spent 3µs making 1 call to Role::Tiny::With::BEGIN@9
10
112139µs2206µs
# spent 108µs (10+98) within Role::Tiny::With::BEGIN@11 which was called: # once (10µs+98µs) by Data::Perl::Collection::Array::MooseLike::BEGIN@7 at line 11
use Exporter 'import';
# spent 108µs making 1 call to Role::Tiny::With::BEGIN@11 # spent 98µs making 1 call to Exporter::import
1211µsour @EXPORT = qw( with );
13
14
# spent 6.54ms (17µs+6.52) within Role::Tiny::With::with which was called 2 times, avg 3.27ms/call: # once (9µs+4.39ms) by Module::Runtime::require_module at line 10 of Data/Perl/Collection/Array/MooseLike.pm # once (8µs+2.12ms) by Module::Runtime::require_module at line 10 of Data/Perl/Collection/Hash/MooseLike.pm
sub with {
1522µs my $target = caller;
16216µs26.52ms Role::Tiny->apply_roles_to_package($target, @_)
# spent 6.52ms making 2 calls to Role::Tiny::apply_roles_to_package, avg 3.26ms/call
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