← Index
NYTProf Performance Profile   « line view »
For /usr/local/libexec/sympa/task_manager-debug.pl
  Run on Tue Jun 1 22:32:51 2021
Reported on Tue Jun 1 22:35:05 2021

Filename/usr/local/lib/perl5/site_perl/Role/Tiny/With.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sRole::Tiny::With::::BEGIN@11Role::Tiny::With::BEGIN@11
0000s0sRole::Tiny::With::::BEGIN@3Role::Tiny::With::BEGIN@3
0000s0sRole::Tiny::With::::BEGIN@4Role::Tiny::With::BEGIN@4
0000s0sRole::Tiny::With::::BEGIN@9Role::Tiny::With::BEGIN@9
0000s0sRole::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
3use strict;
4use warnings;
5
6our $VERSION = '2.002004';
7$VERSION =~ tr/_//d;
8
9use Role::Tiny ();
10
11use Exporter 'import';
12our @EXPORT = qw( with );
13
14sub with {
15 my $target = caller;
16 Role::Tiny->apply_roles_to_package($target, @_)
17}
18
191;
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