← 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:23:04 2010

File /usr/local/lib/perl5/site_perl/5.10.1/MooseX/AttributeHelpers/Collection/Array.pm
Statements Executed 12
Statement Execution Time 174µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11120µs2.47msMooseX::AttributeHelpers::Collection::Array::::BEGIN@3 MooseX::AttributeHelpers::Collection::Array::BEGIN@3
1119µs104µsMooseX::AttributeHelpers::Collection::Array::::BEGIN@12 MooseX::AttributeHelpers::Collection::Array::BEGIN@12
0000s0sMoose::Meta::Attribute::Custom::Collection::Array::::register_implementationMoose::Meta::Attribute::Custom::Collection::Array::register_implementation
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::Collection::Array;
3369µs24.92ms
# spent 2.47ms (20µs+2.45) within MooseX::AttributeHelpers::Collection::Array::BEGIN@3 which was called # once (20µs+2.45ms) by MooseX::AttributeHelpers::BEGIN@28 at line 3
use Moose;
4
51600nsour $VERSION = '0.23';
6116µs$VERSION = eval $VERSION;
71300nsour $AUTHORITY = 'cpan:STEVAN';
8
912µs1367µsextends 'Moose::Meta::Attribute';
# spent 367µs making 1 call to Moose::extends
1012µs18.02mswith 'MooseX::AttributeHelpers::Trait::Collection::Array';
# spent 8.02ms making 1 call to Moose::with
11
12364µs2200µs
# spent 104µs (9+96) within MooseX::AttributeHelpers::Collection::Array::BEGIN@12 which was called # once (9µs+96µs) by MooseX::AttributeHelpers::BEGIN@28 at line 12
no Moose;
13
14# register the alias ...
15package # hide me from search.cpan.org
16 Moose::Meta::Attribute::Custom::Collection::Array;
17sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' }
18
19
20121µs1;
21
22__END__
23
24=pod
25
26=head1 NAME
27
28MooseX::AttributeHelpers::Collection::Array
29
30=head1 SYNOPSIS
31
32 package Stuff;
33 use Moose;
34 use MooseX::AttributeHelpers;
35
36 has 'options' => (
37 metaclass => 'Collection::Array',
38 is => 'ro',
39 isa => 'ArrayRef[Int]',
40 default => sub { [] },
41 provides => {
42 'push' => 'add_options',
43 'pop' => 'remove_last_option',
44 }
45 );
46
47=head1 DESCRIPTION
48
49This module provides an Array attribute which provides a number of
50array operations. See L<MooseX::AttributeHelpers::MethodProvider::Array>
51for more details.
52
53=head1 METHODS
54
55=over 4
56
57=item B<meta>
58
59=item B<method_provider>
60
61=item B<has_method_provider>
62
63=item B<helper_type>
64
65=back
66
67=head1 BUGS
68
69All complex software has bugs lurking in it, and this module is no
70exception. If you find a bug please either email me, or add the bug
71to cpan-RT.
72
73=head1 AUTHOR
74
75Stevan Little E<lt>stevan@iinteractive.comE<gt>
76
77=head1 COPYRIGHT AND LICENSE
78
79Copyright 2007-2009 by Infinity Interactive, Inc.
80
81L<http://www.iinteractive.com>
82
83This library is free software; you can redistribute it and/or modify
84it under the same terms as Perl itself.
85
86=cut