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

File /usr/local/lib/perl5/site_perl/5.10.1/MooseX/AttributeHelpers/Trait/Collection/Hash.pm
Statements Executed 17
Statement Execution Time 270µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111624µs8.12msMooseX::AttributeHelpers::Trait::Collection::Hash::::BEGIN@9MooseX::AttributeHelpers::Trait::Collection::Hash::BEGIN@9
11113µs1.42msMooseX::AttributeHelpers::Trait::Collection::Hash::::BEGIN@3MooseX::AttributeHelpers::Trait::Collection::Hash::BEGIN@3
1118µs115µsMooseX::AttributeHelpers::Trait::Collection::Hash::::BEGIN@22MooseX::AttributeHelpers::Trait::Collection::Hash::BEGIN@22
2114µs4µsMooseX::AttributeHelpers::Trait::Collection::Hash::::helper_typeMooseX::AttributeHelpers::Trait::Collection::Hash::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::Hash;
3350µs22.82ms
# spent 1.42ms (13µs+1.40) within MooseX::AttributeHelpers::Trait::Collection::Hash::BEGIN@3 which was called # once (13µs+1.40ms) by MooseX::AttributeHelpers::BEGIN@19 at line 3
use Moose::Role;
4
51600nsour $VERSION = '0.23';
6114µs$VERSION = eval $VERSION;
71300nsour $AUTHORITY = 'cpan:STEVAN';
8
93146µs18.12ms
# spent 8.12ms (624µs+7.49) within MooseX::AttributeHelpers::Trait::Collection::Hash::BEGIN@9 which was called # once (624µs+7.49ms) by MooseX::AttributeHelpers::BEGIN@19 at line 9
use MooseX::AttributeHelpers::MethodProvider::Hash;
10
1112µs11.97mswith 'MooseX::AttributeHelpers::Trait::Collection';
# spent 1.97ms making 1 call to Moose::Role::with
12
1312µs195µshas 'method_provider' => (
# spent 95µs making 1 call to Moose::Role::has
14 is => 'ro',
15 isa => 'ClassName',
16 predicate => 'has_method_provider',
17 default => 'MooseX::AttributeHelpers::MethodProvider::Hash'
18);
19
2026µs
# spent 4µs within MooseX::AttributeHelpers::Trait::Collection::Hash::helper_type which was called 2 times, avg 2µs/call: # 2 times (4µs+0s) by MooseX::AttributeHelpers::Trait::Base::process_options_for_provides at line 59 of MooseX/AttributeHelpers/Trait/Base.pm, avg 2µs/call
sub helper_type { 'HashRef' }
21
22332µs2222µs
# spent 115µs (8+107) within MooseX::AttributeHelpers::Trait::Collection::Hash::BEGIN@22 which was called # once (8µs+107µs) by MooseX::AttributeHelpers::BEGIN@19 at line 22
no Moose::Role;
23
24116µs1;
25
26__END__
27
28=pod
29
30=head1 NAME
31
32MooseX::AttributeHelpers::Collection::Hash
33
34=head1 SYNOPSIS
35
36 package Stuff;
37 use Moose;
38 use MooseX::AttributeHelpers;
39
40 has 'options' => (
41 metaclass => 'Collection::Hash',
42 is => 'ro',
43 isa => 'HashRef[Str]',
44 default => sub { {} },
45 provides => {
46 'set' => 'set_option',
47 'get' => 'get_option',
48 'empty' => 'has_options',
49 'count' => 'num_options',
50 'delete' => 'delete_option',
51 }
52 );
53
54=head1 DESCRIPTION
55
56This module provides a Hash attribute which provides a number of
57hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
58for more details.
59
60=head1 METHODS
61
62=over 4
63
64=item B<meta>
65
66=item B<method_provider>
67
68=item B<has_method_provider>
69
70=item B<helper_type>
71
72=back
73
74=head1 BUGS
75
76All complex software has bugs lurking in it, and this module is no
77exception. If you find a bug please either email me, or add the bug
78to cpan-RT.
79
80=head1 AUTHOR
81
82Stevan Little E<lt>stevan@iinteractive.comE<gt>
83
84=head1 COPYRIGHT AND LICENSE
85
86Copyright 2007-2009 by Infinity Interactive, Inc.
87
88L<http://www.iinteractive.com>
89
90This library is free software; you can redistribute it and/or modify
91it under the same terms as Perl itself.
92
93=cut