← Index
NYTProf Performance Profile   « block view • line view • sub view »
For 05.Domain_and_Item.t
  Run on Tue May 4 17:21:41 2010
Reported on Tue May 4 17:22:20 2010

File /usr/local/lib/perl5/site_perl/5.10.1/MooseX/AttributeHelpers/Trait/Collection/List.pm
Statements Executed 15
Statement Execution Time 270µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111681µs2.09msMooseX::AttributeHelpers::Trait::Collection::List::::BEGIN@9MooseX::AttributeHelpers::Trait::Collection::List::BEGIN@9
11115µs1.42msMooseX::AttributeHelpers::Trait::Collection::List::::BEGIN@3MooseX::AttributeHelpers::Trait::Collection::List::BEGIN@3
1117µs113µsMooseX::AttributeHelpers::Trait::Collection::List::::BEGIN@22MooseX::AttributeHelpers::Trait::Collection::List::BEGIN@22
0000s0sMooseX::AttributeHelpers::Trait::Collection::List::::helper_typeMooseX::AttributeHelpers::Trait::Collection::List::helper_type
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2package MooseX::AttributeHelpers::Trait::Collection::List;
3352µs22.82ms
# spent 1.42ms (15µs+1.40) within MooseX::AttributeHelpers::Trait::Collection::List::BEGIN@3 which was called # once (15µs+1.40ms) by MooseX::AttributeHelpers::BEGIN@17 at line 3
use Moose::Role;
4
51600nsour $VERSION = '0.23';
6113µs$VERSION = eval $VERSION;
71300nsour $AUTHORITY = 'cpan:STEVAN';
8
93151µs12.09ms
# spent 2.09ms (681µs+1.41) within MooseX::AttributeHelpers::Trait::Collection::List::BEGIN@9 which was called # once (681µs+1.41ms) by MooseX::AttributeHelpers::BEGIN@17 at line 9
use MooseX::AttributeHelpers::MethodProvider::List;
10
1113µs15.96mswith 'MooseX::AttributeHelpers::Trait::Collection';
# spent 5.96ms making 1 call to Moose::Role::with
12
1312µs196µshas 'method_provider' => (
# spent 96µs making 1 call to Moose::Role::has
14 is => 'ro',
15 isa => 'ClassName',
16 predicate => 'has_method_provider',
17 default => 'MooseX::AttributeHelpers::MethodProvider::List'
18);
19
20sub helper_type { 'ArrayRef' }
21
22330µs2218µs
# spent 113µs (7+105) within MooseX::AttributeHelpers::Trait::Collection::List::BEGIN@22 which was called # once (7µs+105µs) by MooseX::AttributeHelpers::BEGIN@17 at line 22
no Moose::Role;
23
24117µs1;
25
26__END__
27
28=pod
29
30=head1 NAME
31
32MooseX::AttributeHelpers::Collection::List
33
34=head1 SYNOPSIS
35
36 package Stuff;
37 use Moose;
38 use MooseX::AttributeHelpers;
39
40 has 'options' => (
41 metaclass => 'Collection::List',
42 is => 'ro',
43 isa => 'ArrayRef[Int]',
44 default => sub { [] },
45 provides => {
46 map => 'map_options',
47 grep => 'filter_options',
48 }
49 );
50
51=head1 DESCRIPTION
52
53This module provides an List attribute which provides a number of
54list operations. See L<MooseX::AttributeHelpers::MethodProvider::List>
55for more details.
56
57=head1 METHODS
58
59=over 4
60
61=item B<meta>
62
63=item B<method_provider>
64
65=item B<has_method_provider>
66
67=item B<helper_type>
68
69=back
70
71=head1 BUGS
72
73All complex software has bugs lurking in it, and this module is no
74exception. If you find a bug please either email me, or add the bug
75to cpan-RT.
76
77=head1 AUTHOR
78
79Stevan Little E<lt>stevan@iinteractive.comE<gt>
80
81=head1 COPYRIGHT AND LICENSE
82
83Copyright 2007-2009 by Infinity Interactive, Inc.
84
85L<http://www.iinteractive.com>
86
87This library is free software; you can redistribute it and/or modify
88it under the same terms as Perl itself.
89
90=cut