Profile of /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Moose/Meta/Mixin/AttributeCore.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:22:32 2010

File | /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Moose/Meta/Mixin/AttributeCore.pm
Statements Executed | 25
Statement Execution Time | 270µs

Subroutines — ordered by exclusive time
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 16µs | 22µs | Moose::Meta::Mixin::AttributeCore::::BEGIN@3Moose::Meta::Mixin::AttributeCore::BEGIN@3
1 | 1 | 1 | 8µs | 27µs | Moose::Meta::Mixin::AttributeCore::::BEGIN@4Moose::Meta::Mixin::AttributeCore::BEGIN@4
1 | 1 | 1 | 8µs | 54µs | Moose::Meta::Mixin::AttributeCore::::BEGIN@9Moose::Meta::Mixin::AttributeCore::BEGIN@9

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package Moose::Meta::Mixin::AttributeCore;
2 |  |  |  |  |
3 | 3 | 22µs | 2 | 28µs | # spent 22µs (16+6) within Moose::Meta::Mixin::AttributeCore::BEGIN@3 which was called # once (16µs+6µs) by base::import at line 3 use strict; # spent 22µs making 1 call to Moose::Meta::Mixin::AttributeCore::BEGIN@3 # spent 6µs making 1 call to strict::import
4 | 3 | 37µs | 2 | 46µs | # spent 27µs (8+19) within Moose::Meta::Mixin::AttributeCore::BEGIN@4 which was called # once (8µs+19µs) by base::import at line 4 use warnings; # spent 27µs making 1 call to Moose::Meta::Mixin::AttributeCore::BEGIN@4 # spent 19µs making 1 call to warnings::import
5 |  |  |  |  |
6 | 1 | 700ns |  |  | our $VERSION = '0.98';
7 | 1 | 200ns |  |  | our $AUTHORITY = 'cpan:STEVAN';
8 |  |  |  |  |
9 | 3 | 140µs | 2 | 54µs | # spent 54µs (8+47) within Moose::Meta::Mixin::AttributeCore::BEGIN@9 which was called # once (8µs+47µs) by base::import at line 9 use base 'Class::MOP::Mixin::AttributeCore'; # spent 54µs making 1 call to Moose::Meta::Mixin::AttributeCore::BEGIN@9 # spent 47µs making 1 call to base::import, recursion: max depth 1, time 47µs
10 |  |  |  |  |
11 | 1 | 9µs | 2 | 412µs | __PACKAGE__->meta->add_attribute( 'isa' => ( reader => '_isa_metadata' ) ); # spent 328µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 85µs making 1 call to Class::MOP::Mixin::meta
12 | 1 | 2µs | 2 | 296µs | __PACKAGE__->meta->add_attribute( 'does' => ( reader => '_does_metadata' ) ); # spent 285µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
13 | 1 | 3µs | 2 | 263µs | __PACKAGE__->meta->add_attribute( 'is' => ( reader => '_is_metadata' ) ); # spent 252µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
14 |  |  |  |  |
15 | 1 | 2µs | 2 | 261µs | __PACKAGE__->meta->add_attribute( 'required' => ( reader => 'is_required' ) ); # spent 250µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
16 | 1 | 2µs | 2 | 272µs | __PACKAGE__->meta->add_attribute( 'lazy' => ( reader => 'is_lazy' ) ); # spent 261µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
17 | 1 | 2µs | 2 | 268µs | __PACKAGE__->meta->add_attribute( # spent 256µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
18 |  |  |  |  | 'lazy_build' => ( reader => 'is_lazy_build' ) );
19 | 1 | 2µs | 2 | 259µs | __PACKAGE__->meta->add_attribute( 'coerce' => ( reader => 'should_coerce' ) ); # spent 248µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
20 | 1 | 2µs | 2 | 286µs | __PACKAGE__->meta->add_attribute( 'weak_ref' => ( reader => 'is_weak_ref' ) ); # spent 276µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
21 | 1 | 2µs | 2 | 274µs | __PACKAGE__->meta->add_attribute( # spent 263µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
22 |  |  |  |  | 'auto_deref' => ( reader => 'should_auto_deref' ) );
23 | 1 | 2µs | 2 | 404µs | __PACKAGE__->meta->add_attribute( # spent 393µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
24 |  |  |  |  | 'type_constraint' => (
25 |  |  |  |  | reader => 'type_constraint',
26 |  |  |  |  | predicate => 'has_type_constraint',
27 |  |  |  |  | )
28 |  |  |  |  | );
29 | 1 | 2µs | 2 | 398µs | __PACKAGE__->meta->add_attribute( # spent 387µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
30 |  |  |  |  | 'trigger' => (
31 |  |  |  |  | reader => 'trigger',
32 |  |  |  |  | predicate => 'has_trigger',
33 |  |  |  |  | )
34 |  |  |  |  | );
35 | 1 | 2µs | 2 | 544µs | __PACKAGE__->meta->add_attribute( # spent 533µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 11µs making 1 call to Class::MOP::Mixin::meta
36 |  |  |  |  | 'handles' => (
37 |  |  |  |  | reader => 'handles',
38 |  |  |  |  | writer => '_set_handles',
39 |  |  |  |  | predicate => 'has_handles',
40 |  |  |  |  | )
41 |  |  |  |  | );
42 | 1 | 3µs | 2 | 423µs | __PACKAGE__->meta->add_attribute( # spent 411µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 12µs making 1 call to Class::MOP::Mixin::meta
43 |  |  |  |  | 'documentation' => (
44 |  |  |  |  | reader => 'documentation',
45 |  |  |  |  | predicate => 'has_documentation',
46 |  |  |  |  | )
47 |  |  |  |  | );
48 |  |  |  |  |
49 | 1 | 31µs |  |  | 1;
50 |  |  |  |  |
51 |  |  |  |  | __END__
52 |  |  |  |  |
53 |  |  |  |  | =pod
54 |  |  |  |  |
55 |  |  |  |  | =head1 NAME
56 |  |  |  |  |
57 |  |  |  |  | Moose::Meta::Mixin::AttributeCore - Core attributes shared by attribute metaclasses
58 |  |  |  |  |
59 |  |  |  |  | =head1 DESCRIPTION
60 |  |  |  |  |
61 |  |  |  |  | This class implements the core attributes (aka properties) shared by all Moose
62 |  |  |  |  | attributes. See the L<Moose::Meta::Attribute> documentation for API details.
63 |  |  |  |  |
64 |  |  |  |  | =head1 BUGS
65 |  |  |  |  |
66 |  |  |  |  | See L<Moose/BUGS> for details on reporting bugs.
67 |  |  |  |  |
68 |  |  |  |  | =head1 AUTHORS
69 |  |  |  |  |
70 |  |  |  |  | Dave Rolsky E<lt>autarch@urth.orgE<gt>
71 |  |  |  |  |
72 |  |  |  |  | =head1 COPYRIGHT AND LICENSE
73 |  |  |  |  |
74 |  |  |  |  | Copyright 2006-2010 by Infinity Interactive, Inc.
75 |  |  |  |  |
76 |  |  |  |  | L<http://www.iinteractive.com>
77 |  |  |  |  |
78 |  |  |  |  | This library is free software; you can redistribute it and/or modify
79 |  |  |  |  | it under the same terms as Perl itself.
80 |  |  |  |  |
81 |  |  |  |  | =cut