Profile of /usr/local/lib/perl5/site_perl/5.10.1/MooseX/AttributeHelpers/Collection/List.pm

← 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:26 2010

File | /usr/local/lib/perl5/site_perl/5.10.1/MooseX/AttributeHelpers/Collection/List.pm
Statements Executed | 12
Statement Execution Time | 178µs

Subroutines — ordered by exclusive time
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 20µs | 2.35ms | MooseX::AttributeHelpers::Collection::List::::BEGIN@3 MooseX::AttributeHelpers::Collection::List::BEGIN@3
1 | 1 | 1 | 8µs | 112µs | MooseX::AttributeHelpers::Collection::List::::BEGIN@12 MooseX::AttributeHelpers::Collection::List::BEGIN@12
0 | 0 | 0 | 0s | 0s | Moose::Meta::Attribute::Custom::Collection::List::::register_implementationMoose::Meta::Attribute::Custom::Collection::List::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 |  |  |  |  |
2 |  |  |  |  | package MooseX::AttributeHelpers::Collection::List;
3 | 3 | 64µs | 2 | 4.69ms | # spent 2.35ms (20µs+2.33) within MooseX::AttributeHelpers::Collection::List::BEGIN@3 which was called # once (20µs+2.33ms) by MooseX::AttributeHelpers::BEGIN@27 at line 3 use Moose; # spent 2.35ms making 1 call to MooseX::AttributeHelpers::Collection::List::BEGIN@3 # spent 2.33ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:389]
4 |  |  |  |  |
5 | 1 | 600ns |  |  | our $VERSION = '0.23';
6 | 1 | 15µs |  |  | $VERSION = eval $VERSION;
7 | 1 | 300ns |  |  | our $AUTHORITY = 'cpan:STEVAN';
8 |  |  |  |  |
9 | 1 | 2µs | 1 | 373µs | extends 'Moose::Meta::Attribute'; # spent 373µs making 1 call to Moose::extends
10 | 1 | 2µs | 1 | 7.86ms | with 'MooseX::AttributeHelpers::Trait::Collection::List'; # spent 7.86ms making 1 call to Moose::with
11 |  |  |  |  |
12 | 3 | 70µs | 2 | 216µs | # spent 112µs (8+104) within MooseX::AttributeHelpers::Collection::List::BEGIN@12 which was called # once (8µs+104µs) by MooseX::AttributeHelpers::BEGIN@27 at line 12 no Moose; # spent 112µs making 1 call to MooseX::AttributeHelpers::Collection::List::BEGIN@12 # spent 104µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:478]
13 |  |  |  |  |
14 |  |  |  |  | # register the alias ...
15 |  |  |  |  | package # hide me from search.cpan.org
16 |  |  |  |  | Moose::Meta::Attribute::Custom::Collection::List;
17 |  |  |  |  | sub register_implementation { 'MooseX::AttributeHelpers::Collection::List' }
18 |  |  |  |  |
19 |  |  |  |  |
20 | 1 | 25µs |  |  | 1;
21 |  |  |  |  |
22 |  |  |  |  | __END__
23 |  |  |  |  |
24 |  |  |  |  | =pod
25 |  |  |  |  |
26 |  |  |  |  | =head1 NAME
27 |  |  |  |  |
28 |  |  |  |  | MooseX::AttributeHelpers::Collection::List
29 |  |  |  |  |
30 |  |  |  |  | =head1 SYNOPSIS
31 |  |  |  |  |
32 |  |  |  |  | package Stuff;
33 |  |  |  |  | use Moose;
34 |  |  |  |  | use MooseX::AttributeHelpers;
35 |  |  |  |  |
36 |  |  |  |  | has 'options' => (
37 |  |  |  |  | metaclass => 'Collection::List',
38 |  |  |  |  | is => 'ro',
39 |  |  |  |  | isa => 'ArrayRef[Int]',
40 |  |  |  |  | default => sub { [] },
41 |  |  |  |  | provides => {
42 |  |  |  |  | map => 'map_options',
43 |  |  |  |  | grep => 'filter_options',
44 |  |  |  |  | }
45 |  |  |  |  | );
46 |  |  |  |  |
47 |  |  |  |  | =head1 DESCRIPTION
48 |  |  |  |  |
49 |  |  |  |  | This module provides an List attribute which provides a number of
50 |  |  |  |  | list operations. See L<MooseX::AttributeHelpers::MethodProvider::List>
51 |  |  |  |  | for 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 |  |  |  |  |
69 |  |  |  |  | All complex software has bugs lurking in it, and this module is no
70 |  |  |  |  | exception. If you find a bug please either email me, or add the bug
71 |  |  |  |  | to cpan-RT.
72 |  |  |  |  |
73 |  |  |  |  | =head1 AUTHOR
74 |  |  |  |  |
75 |  |  |  |  | Stevan Little E<lt>stevan@iinteractive.comE<gt>
76 |  |  |  |  |
77 |  |  |  |  | =head1 COPYRIGHT AND LICENSE
78 |  |  |  |  |
79 |  |  |  |  | Copyright 2007-2009 by Infinity Interactive, Inc.
80 |  |  |  |  |
81 |  |  |  |  | L<http://www.iinteractive.com>
82 |  |  |  |  |
83 |  |  |  |  | This library is free software; you can redistribute it and/or modify
84 |  |  |  |  | it under the same terms as Perl itself.
85 |  |  |  |  |
86 |  |  |  |  | =cut