← Index
NYTProf Performance Profile   « block view • line view • sub view »
For reply.pl
  Run on Thu Oct 21 22:40:13 2010
Reported on Thu Oct 21 22:44:42 2010

Filename/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/x86_64-linux/Mouse/Meta/Attribute.pm
StatementsExecuted 1359 statements in 8.26ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
36111.81ms5.21msMouse::Meta::Attribute::::install_accessorsMouse::Meta::Attribute::install_accessors
1111.12ms1.23msMouse::Meta::Attribute::::BEGIN@6Mouse::Meta::Attribute::BEGIN@6
3611945µs4.44msMouse::Meta::Attribute::::newMouse::Meta::Attribute::new
3611378µs3.38msMouse::Meta::Attribute::::_process_optionsMouse::Meta::Attribute::_process_options (xsub)
3611295µs295µsMouse::Meta::Attribute::::interpolate_classMouse::Meta::Attribute::interpolate_class
5411284µs284µsMouse::Meta::Attribute::::associate_methodMouse::Meta::Attribute::associate_method
9022132µs132µsMouse::Meta::Attribute::::nameMouse::Meta::Attribute::name (xsub)
361155µs55µsMouse::Meta::Attribute::::has_type_constraintMouse::Meta::Attribute::has_type_constraint (xsub)
361153µs53µsMouse::Meta::Attribute::::has_triggerMouse::Meta::Attribute::has_trigger (xsub)
361152µs52µsMouse::Meta::Attribute::::init_argMouse::Meta::Attribute::init_arg (xsub)
361151µs51µsMouse::Meta::Attribute::::is_requiredMouse::Meta::Attribute::is_required (xsub)
361151µs51µsMouse::Meta::Attribute::::has_builderMouse::Meta::Attribute::has_builder (xsub)
351151µs51µsMouse::Meta::Attribute::::should_coerceMouse::Meta::Attribute::should_coerce (xsub)
361151µs51µsMouse::Meta::Attribute::::accessor_metaclassMouse::Meta::Attribute::accessor_metaclass (xsub)
351150µs50µsMouse::Meta::Attribute::::should_auto_derefMouse::Meta::Attribute::should_auto_deref (xsub)
361150µs50µsMouse::Meta::Attribute::::associated_classMouse::Meta::Attribute::associated_class (xsub)
361150µs50µsMouse::Meta::Attribute::::is_lazyMouse::Meta::Attribute::is_lazy (xsub)
351149µs49µsMouse::Meta::Attribute::::type_constraintMouse::Meta::Attribute::type_constraint (xsub)
361148µs48µsMouse::Meta::Attribute::::is_weak_refMouse::Meta::Attribute::is_weak_ref (xsub)
271136µs36µsMouse::Meta::Attribute::::has_defaultMouse::Meta::Attribute::has_default (xsub)
11125µs105µsMouse::Meta::Attribute::::BEGIN@2Mouse::Meta::Attribute::BEGIN@2
143320µs20µsMouse::Meta::Attribute::::defaultMouse::Meta::Attribute::default (xsub)
88313µs13µsMouse::Meta::Attribute::::builderMouse::Meta::Attribute::builder (xsub)
1117µs7µsMouse::Meta::Attribute::::BEGIN@4Mouse::Meta::Attribute::BEGIN@4
1111µs1µsMouse::Meta::Attribute::::triggerMouse::Meta::Attribute::trigger (xsub)
0000s0sMouse::Meta::Attribute::::_canonicalize_handlesMouse::Meta::Attribute::_canonicalize_handles
0000s0sMouse::Meta::Attribute::::_find_delegate_metaclassMouse::Meta::Attribute::_find_delegate_metaclass
0000s0sMouse::Meta::Attribute::::_get_accessor_method_refMouse::Meta::Attribute::_get_accessor_method_ref
0000s0sMouse::Meta::Attribute::::_make_delegation_methodMouse::Meta::Attribute::_make_delegation_method
0000s0sMouse::Meta::Attribute::::_throw_type_constraint_errorMouse::Meta::Attribute::_throw_type_constraint_error
0000s0sMouse::Meta::Attribute::::clear_valueMouse::Meta::Attribute::clear_value
0000s0sMouse::Meta::Attribute::::clone_and_inherit_optionsMouse::Meta::Attribute::clone_and_inherit_options
0000s0sMouse::Meta::Attribute::::get_read_methodMouse::Meta::Attribute::get_read_method
0000s0sMouse::Meta::Attribute::::get_read_method_refMouse::Meta::Attribute::get_read_method_ref
0000s0sMouse::Meta::Attribute::::get_valueMouse::Meta::Attribute::get_value
0000s0sMouse::Meta::Attribute::::get_write_methodMouse::Meta::Attribute::get_write_method
0000s0sMouse::Meta::Attribute::::get_write_method_refMouse::Meta::Attribute::get_write_method_ref
0000s0sMouse::Meta::Attribute::::has_read_methodMouse::Meta::Attribute::has_read_method
0000s0sMouse::Meta::Attribute::::has_valueMouse::Meta::Attribute::has_value
0000s0sMouse::Meta::Attribute::::has_write_methodMouse::Meta::Attribute::has_write_method
0000s0sMouse::Meta::Attribute::::illegal_options_for_inheritanceMouse::Meta::Attribute::illegal_options_for_inheritance
0000s0sMouse::Meta::Attribute::::set_valueMouse::Meta::Attribute::set_value
0000s0sMouse::Meta::Attribute::::verify_against_type_constraintMouse::Meta::Attribute::verify_against_type_constraint
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Mouse::Meta::Attribute;
2231µs2185µs
# spent 105µs (25+80) within Mouse::Meta::Attribute::BEGIN@2 which was called: # once (25µs+80µs) by Mouse::BEGIN@16 at line 2
use Mouse::Util qw(:meta); # enables strict and warnings
# spent 105µs making 1 call to Mouse::Meta::Attribute::BEGIN@2 # spent 80µs making 1 call to Mouse::Exporter::do_import
3
4223µs17µs
# spent 7µs within Mouse::Meta::Attribute::BEGIN@4 which was called: # once (7µs+0s) by Mouse::BEGIN@16 at line 4
use Carp ();
# spent 7µs making 1 call to Mouse::Meta::Attribute::BEGIN@4
5
621.46ms11.23ms
# spent 1.23ms (1.12+111µs) within Mouse::Meta::Attribute::BEGIN@6 which was called: # once (1.12ms+111µs) by Mouse::BEGIN@16 at line 6
use Mouse::Meta::TypeConstraint;
# spent 1.23ms making 1 call to Mouse::Meta::Attribute::BEGIN@6
7
8125µsmy %valid_options = map { $_ => undef } (
9 'accessor',
10 'auto_deref',
11 'builder',
12 'clearer',
13 'coerce',
14 'default',
15 'documentation',
16 'does',
17 'handles',
18 'init_arg',
19 'insertion_order',
20 'is',
21 'isa',
22 'lazy',
23 'lazy_build',
24 'name',
25 'predicate',
26 'reader',
27 'required',
28 'traits',
29 'trigger',
30 'type_constraint',
31 'weak_ref',
32 'writer',
33
34 # internally used
35 'associated_class',
36 'associated_methods',
37 '__METACLASS__',
38
39 # Moose defines, but Mouse doesn't
40 #'definition_context',
41 #'initializer',
42
43 # special case for AttributeHelpers
44 'provides',
45 'curries',
46);
47
4812µsour @CARP_NOT = qw(Mouse::Meta::Class);
49
50
# spent 4.44ms (945µs+3.49) within Mouse::Meta::Attribute::new which was called 36 times, avg 123µs/call: # 36 times (945µs+3.49ms) by Mouse::Meta::Class::add_attribute at line 232 of Mouse/Meta/Class.pm, avg 123µs/call
sub new {
513644µs my $class = shift;
523639µs my $name = shift;
53
5436287µs36109µs my $args = $class->Mouse::Object::BUILDARGS(@_);
# spent 109µs making 36 calls to Mouse::Object::BUILDARGS, avg 3µs/call
55
5636478µs786.39ms $class->_process_options($name, $args);
# spent 3.38ms making 36 calls to Mouse::Meta::Attribute::_process_options, avg 94µs/call # spent 1.78ms making 31 calls to Mouse::Util::TypeConstraints::find_or_create_isa_type_constraint, avg 57µs/call # spent 896µs making 4 calls to Mouse::Util::TypeConstraints::find_or_create_does_type_constraint, avg 224µs/call # spent 326µs making 7 calls to Mouse::Meta::TypeConstraint::is_a_type_of, avg 47µs/call
57
583663µs $args->{name} = $name;
59
60 # check options
61 # (1) known by core
6236153µs my @bad = grep{ !exists $valid_options{$_} } keys %{$args};
63
64 # (2) known by subclasses
653646µs if(@bad && $class ne __PACKAGE__){
66 my %valid_attrs = (
67 map { $_ => undef }
68 grep { defined }
69 map { $_->init_arg() }
70 $class->meta->get_all_attributes()
71 );
72 @bad = grep{ !exists $valid_attrs{$_} } @bad;
73 }
74
75 # (3) bad options found
763638µs if(@bad){
77 Carp::carp(
78 "Found unknown argument(s) passed to '$name' attribute constructor in '$class': "
79 . Mouse::Util::english_list(@bad));
80 }
81
823685µs my $self = bless $args, $class;
833643µs if($class ne __PACKAGE__){
84 $class->meta->_initialize_object($self, $args);
85 }
8636147µs return $self;
87}
88
89sub has_read_method { $_[0]->has_reader || $_[0]->has_accessor }
90sub has_write_method { $_[0]->has_writer || $_[0]->has_accessor }
91
92sub get_read_method { $_[0]->reader || $_[0]->accessor }
93sub get_write_method { $_[0]->writer || $_[0]->accessor }
94
95sub get_read_method_ref{
96 my($self) = @_;
97 return $self->{_mouse_cache_read_method_ref}
98 ||= $self->_get_accessor_method_ref('get_read_method', '_generate_reader');
99}
100
101sub get_write_method_ref{
102 my($self) = @_;
103 return $self->{_mouse_cache_write_method_ref}
104 ||= $self->_get_accessor_method_ref('get_write_method', '_generate_writer');
105}
106
107
# spent 295µs within Mouse::Meta::Attribute::interpolate_class which was called 36 times, avg 8µs/call: # 36 times (295µs+0s) by Mouse::Meta::Class::add_attribute at line 229 of Mouse/Meta/Class.pm, avg 8µs/call
sub interpolate_class{
1083654µs my($class, $args) = @_;
109
1103653µs if(my $metaclass = delete $args->{metaclass}){
111 $class = Mouse::Util::resolve_metaclass_alias( Attribute => $metaclass );
112 }
113
1143637µs my @traits;
1153641µs if(my $traits_ref = delete $args->{traits}){
116
117 for (my $i = 0; $i < @{$traits_ref}; $i++) {
118 my $trait = Mouse::Util::resolve_metaclass_alias(Attribute => $traits_ref->[$i], trait => 1);
119
120 next if $class->does($trait);
121
122 push @traits, $trait;
123
124 # are there options?
125 push @traits, $traits_ref->[++$i]
126 if ref($traits_ref->[$i+1]);
127 }
128
129 if (@traits) {
130 $class = Mouse::Meta::Class->create_anon_class(
131 superclasses => [ $class ],
132 roles => \@traits,
133 cache => 1,
134 )->name;
135 }
136 }
137
13836147µs return( $class, @traits );
139}
140
141sub verify_against_type_constraint {
142 my ($self, $value) = @_;
143
144 my $type_constraint = $self->{type_constraint};
145 return 1 if !$type_constraint;
146 return 1 if $type_constraint->check($value);
147
148 $self->_throw_type_constraint_error($value, $type_constraint);
149}
150
151sub _throw_type_constraint_error {
152 my($self, $value, $type) = @_;
153
154 $self->throw_error(
155 sprintf q{Attribute (%s) does not pass the type constraint because: %s},
156 $self->name,
157 $type->get_message($value),
158 );
159}
160
161sub illegal_options_for_inheritance {
162 return qw(reader writer accessor clearer predicate);
163}
164
165sub clone_and_inherit_options{
166 my $self = shift;
167 my $args = $self->Mouse::Object::BUILDARGS(@_);
168
169 foreach my $illegal($self->illegal_options_for_inheritance) {
170 if(exists $args->{$illegal} and exists $self->{$illegal}) {
171 $self->throw_error("Illegal inherited option: $illegal");
172 }
173 }
174
175 foreach my $name(keys %{$self}){
176 if(!exists $args->{$name}){
177 $args->{$name} = $self->{$name}; # inherit from self
178 }
179 }
180
181 my($attribute_class, @traits) = ref($self)->interpolate_class($args);
182 $args->{traits} = \@traits if @traits;
183
184 # remove temporary caches
185 foreach my $attr(keys %{$args}){
186 if($attr =~ /\A _mouse_cache_/xms){
187 delete $args->{$attr};
188 }
189 }
190
191 # remove default if lazy_build => 1
192 if($args->{lazy_build}) {
193 delete $args->{default};
194 }
195
196 return $attribute_class->new($self->name, $args);
197}
198
199
200sub _get_accessor_method_ref {
201 my($self, $type, $generator) = @_;
202
203 my $metaclass = $self->associated_class
204 || $self->throw_error('No asocciated class for ' . $self->name);
205
206 my $accessor = $self->$type();
207 if($accessor){
208 return $metaclass->get_method_body($accessor);
209 }
210 else{
211 return $self->accessor_metaclass->$generator($self, $metaclass);
212 }
213}
214
215sub set_value {
216 my($self, $object, $value) = @_;
217 return $self->get_write_method_ref()->($object, $value);
218}
219
220sub get_value {
221 my($self, $object) = @_;
222 return $self->get_read_method_ref()->($object);
223}
224
225sub has_value {
226 my($self, $object) = @_;
227 my $accessor_ref = $self->{_mouse_cache_predicate_ref}
228 ||= $self->_get_accessor_method_ref('predicate', '_generate_predicate');
229
230 return $accessor_ref->($object);
231}
232
233sub clear_value {
234 my($self, $object) = @_;
235 my $accessor_ref = $self->{_mouse_cache_crealer_ref}
236 ||= $self->_get_accessor_method_ref('clearer', '_generate_clearer');
237
238 return $accessor_ref->($object);
239}
240
241
# spent 284µs within Mouse::Meta::Attribute::associate_method which was called 54 times, avg 5µs/call: # 54 times (284µs+0s) by Mouse::Meta::Attribute::install_accessors at line 259, avg 5µs/call
sub associate_method{
242 #my($attribute, $method_name) = @_;
2435466µs my($attribute) = @_;
2445471µs $attribute->{associated_methods}++;
24554194µs return;
246}
247
248
# spent 5.21ms (1.81+3.40) within Mouse::Meta::Attribute::install_accessors which was called 36 times, avg 145µs/call: # 36 times (1.81ms+3.40ms) by Mouse::Meta::Class::add_attribute at line 239 of Mouse/Meta/Class.pm, avg 145µs/call
sub install_accessors{
2493646µs my($attribute) = @_;
250
25136179µs3650µs my $metaclass = $attribute->associated_class;
# spent 50µs making 36 calls to Mouse::Meta::Attribute::associated_class, avg 1µs/call
25236178µs3651µs my $accessor_class = $attribute->accessor_metaclass;
# spent 51µs making 36 calls to Mouse::Meta::Attribute::accessor_metaclass, avg 1µs/call
253
2543688µs foreach my $type(qw(accessor reader writer predicate clearer)){
255180440µs if(exists $attribute->{$type}){
2565475µs my $generator = '_generate_' . $type;
257542.66ms4993.59ms my $code = $accessor_class->$generator($attribute, $metaclass);
# spent 1.38ms making 18 calls to Mouse::Meta::Method::Accessor::XS::_generate_reader, avg 77µs/call # spent 1.16ms making 18 calls to Mouse::Meta::Method::Accessor::XS::_generate_accessor, avg 64µs/call # spent 275µs making 7 calls to Mouse::Meta::TypeConstraint::is_a_type_of, avg 39µs/call # spent 80µs making 54 calls to Mouse::Meta::Attribute::name, avg 1µs/call # spent 78µs making 9 calls to Mouse::Meta::Method::Accessor::XS::_generate_predicate, avg 9µs/call # spent 68µs making 9 calls to Mouse::Meta::Method::Accessor::XS::_generate_clearer, avg 8µs/call # spent 55µs making 36 calls to Mouse::Meta::Attribute::has_type_constraint, avg 2µs/call # spent 53µs making 36 calls to Mouse::Meta::Attribute::has_trigger, avg 1µs/call # spent 52µs making 36 calls to Mouse::Meta::Attribute::init_arg, avg 1µs/call # spent 51µs making 36 calls to Mouse::Meta::Attribute::is_required, avg 1µs/call # spent 51µs making 36 calls to Mouse::Meta::Attribute::has_builder, avg 1µs/call # spent 51µs making 35 calls to Mouse::Meta::Attribute::should_coerce, avg 1µs/call # spent 50µs making 35 calls to Mouse::Meta::Attribute::should_auto_deref, avg 1µs/call # spent 50µs making 36 calls to Mouse::Meta::Attribute::is_lazy, avg 1µs/call # spent 49µs making 35 calls to Mouse::Meta::Attribute::type_constraint, avg 1µs/call # spent 48µs making 36 calls to Mouse::Meta::Attribute::is_weak_ref, avg 1µs/call # spent 36µs making 27 calls to Mouse::Meta::Attribute::has_default, avg 1µs/call
25854564µs54331µs $metaclass->add_method($attribute->{$type} => $code);
# spent 331µs making 54 calls to Mouse::Meta::Module::add_method, avg 6µs/call
25954229µs54284µs $attribute->associate_method($attribute->{$type});
# spent 284µs making 54 calls to Mouse::Meta::Attribute::associate_method, avg 5µs/call
260 }
261 }
262
263 # install delegation
2643641µs if(exists $attribute->{handles}){
265 my %handles = $attribute->_canonicalize_handles();
266 while(my($handle, $method_to_call) = each %handles){
267 next if Mouse::Object->can($handle);
268
269 if($metaclass->has_method($handle)) {
270 $attribute->throw_error("You cannot overwrite a locally defined method ($handle) with a delegation");
271 }
272
273 $metaclass->add_method($handle =>
274 $attribute->_make_delegation_method(
275 $handle, $method_to_call));
276
277 $attribute->associate_method($handle);
278 }
279 }
280
28136120µs return;
282}
283
284sub delegation_metaclass() { ## no critic
285 'Mouse::Meta::Method::Delegation'
286}
287
288sub _canonicalize_handles {
289 my($self) = @_;
290 my $handles = $self->{handles};
291
292 my $handle_type = ref $handles;
293 if ($handle_type eq 'HASH') {
294 return %$handles;
295 }
296 elsif ($handle_type eq 'ARRAY') {
297 return map { $_ => $_ } @$handles;
298 }
299 elsif ($handle_type eq 'Regexp') {
300 my $meta = $self->_find_delegate_metaclass();
301 return map { $_ => $_ }
302 grep { /$handles/ }
303 Mouse::Util::is_a_metarole($meta)
304 ? $meta->get_method_list
305 : $meta->get_all_method_names;
306 }
307 elsif ($handle_type eq 'CODE') {
308 return $handles->( $self, $self->_find_delegate_metaclass() );
309 }
310 else {
311 $self->throw_error("Unable to canonicalize the 'handles' option with $handles");
312 }
313}
314
315sub _find_delegate_metaclass {
316 my($self) = @_;
317 my $meta;
318 if($self->{isa}) {
319 $meta = Mouse::Meta::Class->initialize("$self->{isa}");
320 }
321 elsif($self->{does}) {
322 $meta = Mouse::Util::get_metaclass_by_name("$self->{does}");
323 }
324 defined($meta) or $self->throw_error(
325 "Cannot find delegate metaclass for attribute " . $self->name);
326 return $meta;
327}
328
329
330sub _make_delegation_method {
331 my($self, $handle, $method_to_call) = @_;
332 return Mouse::Util::load_class($self->delegation_metaclass)
333 ->_generate_delegation($self, $handle, $method_to_call);
334}
335
33617µs1;
337__END__
 
# spent 3.38ms (378µs+3.00) within Mouse::Meta::Attribute::_process_options which was called 36 times, avg 94µs/call: # 36 times (378µs+3.00ms) by Mouse::Meta::Attribute::new at line 56, avg 94µs/call
sub Mouse::Meta::Attribute::_process_options; # xsub
# spent 51µs within Mouse::Meta::Attribute::accessor_metaclass which was called 36 times, avg 1µs/call: # 36 times (51µs+0s) by Mouse::Meta::Attribute::install_accessors at line 252, avg 1µs/call
sub Mouse::Meta::Attribute::accessor_metaclass; # xsub
# spent 50µs within Mouse::Meta::Attribute::associated_class which was called 36 times, avg 1µs/call: # 36 times (50µs+0s) by Mouse::Meta::Attribute::install_accessors at line 251, avg 1µs/call
sub Mouse::Meta::Attribute::associated_class; # xsub
# spent 13µs within Mouse::Meta::Attribute::builder which was called 8 times, avg 2µs/call: # once (2µs+0s) by Hailo::Storage::sth at line 110 of Hailo/Storage.pm # once (2µs+0s) by Hailo::_engine at line 316 of Hailo.pm # once (2µs+0s) by Hailo::_storage at line 309 of Hailo.pm # once (2µs+0s) by Hailo::Storage::dbh at line 115 of Hailo/Storage/SQLite.pm # once (2µs+0s) by Hailo::Storage::dbd_options at line 61 of Hailo/Storage.pm # once (2µs+0s) by Hailo::_tokenizer at line 317 of Hailo.pm # once (1µs+0s) by Hailo::Storage::dbi_options at line 45 of Hailo/Storage.pm # once (1µs+0s) by Hailo::Storage::dbd at line 60 of Hailo/Storage.pm
sub Mouse::Meta::Attribute::builder; # xsub
# spent 20µs within Mouse::Meta::Attribute::default which was called 14 times, avg 1µs/call: # 11 times (15µs+0s) by Mouse::Object::new at line 9 of reply.pl, avg 1µs/call # 2 times (3µs+0s) by Mouse::Object::new at line 207 of Hailo.pm, avg 1µs/call # once (2µs+0s) by Hailo::Engine::Default::repeat_limit at line 287 of Hailo/Engine/Default.pm
sub Mouse::Meta::Attribute::default; # xsub
# spent 51µs within Mouse::Meta::Attribute::has_builder which was called 36 times, avg 1µs/call: # 36 times (51µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::has_builder; # xsub
# spent 36µs within Mouse::Meta::Attribute::has_default which was called 27 times, avg 1µs/call: # 27 times (36µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::has_default; # xsub
# spent 53µs within Mouse::Meta::Attribute::has_trigger which was called 36 times, avg 1µs/call: # 36 times (53µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::has_trigger; # xsub
# spent 55µs within Mouse::Meta::Attribute::has_type_constraint which was called 36 times, avg 2µs/call: # 36 times (55µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 2µs/call
sub Mouse::Meta::Attribute::has_type_constraint; # xsub
# spent 52µs within Mouse::Meta::Attribute::init_arg which was called 36 times, avg 1µs/call: # 36 times (52µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::init_arg; # xsub
# spent 50µs within Mouse::Meta::Attribute::is_lazy which was called 36 times, avg 1µs/call: # 36 times (50µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::is_lazy; # xsub
# spent 51µs within Mouse::Meta::Attribute::is_required which was called 36 times, avg 1µs/call: # 36 times (51µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::is_required; # xsub
# spent 48µs within Mouse::Meta::Attribute::is_weak_ref which was called 36 times, avg 1µs/call: # 36 times (48µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::is_weak_ref; # xsub
# spent 132µs within Mouse::Meta::Attribute::name which was called 90 times, avg 1µs/call: # 54 times (80µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_clearer or Mouse::Meta::Method::Accessor::XS::_generate_predicate or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call # 36 times (52µs+0s) by Mouse::Meta::Class::_calculate_all_attributes at line 259 of Mouse/Meta/Class.pm, avg 1µs/call
sub Mouse::Meta::Attribute::name; # xsub
# spent 50µs within Mouse::Meta::Attribute::should_auto_deref which was called 35 times, avg 1µs/call: # 35 times (50µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::should_auto_deref; # xsub
# spent 51µs within Mouse::Meta::Attribute::should_coerce which was called 35 times, avg 1µs/call: # 35 times (51µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::should_coerce; # xsub
# spent 1µs within Mouse::Meta::Attribute::trigger which was called: # once (1µs+0s) by Mouse::Object::new at line 9 of reply.pl
sub Mouse::Meta::Attribute::trigger; # xsub
# spent 49µs within Mouse::Meta::Attribute::type_constraint which was called 35 times, avg 1µs/call: # 35 times (49µs+0s) by Mouse::Meta::Method::Accessor::XS::_generate_accessor or Mouse::Meta::Method::Accessor::XS::_generate_reader at line 257, avg 1µs/call
sub Mouse::Meta::Attribute::type_constraint; # xsub