Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Moose/Meta/Object/Trait.pm |
Statements | Executed 6 statements in 157µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 8µs | 8µs | BEGIN@3 | Moose::Meta::Object::Trait::
1 | 1 | 1 | 6µs | 31µs | BEGIN@10 | Moose::Meta::Object::Trait::
0 | 0 | 0 | 0s | 0s | _get_compatible_metaclass | Moose::Meta::Object::Trait::
0 | 0 | 0 | 0s | 0s | _get_compatible_metaclass_by_role_reconciliation | Moose::Meta::Object::Trait::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | package Moose::Meta::Object::Trait; | ||||
3 | # spent 8µs within Moose::Meta::Object::Trait::BEGIN@3 which was called:
# once (8µs+0s) by Module::Runtime::require_module at line 5 | ||||
4 | 1 | 4µs | $Moose::Meta::Object::Trait::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 30µs | 1 | 8µs | } # spent 8µs making 1 call to Moose::Meta::Object::Trait::BEGIN@3 |
6 | { | ||||
7 | 2 | 900ns | $Moose::Meta::Object::Trait::VERSION = '2.1005'; | ||
8 | } | ||||
9 | |||||
10 | 2 | 120µs | 2 | 56µs | # spent 31µs (6+25) within Moose::Meta::Object::Trait::BEGIN@10 which was called:
# once (6µs+25µs) by Module::Runtime::require_module at line 10 # spent 31µs making 1 call to Moose::Meta::Object::Trait::BEGIN@10
# spent 25µs making 1 call to Exporter::import |
11 | |||||
12 | sub _get_compatible_metaclass { | ||||
13 | my $orig = shift; | ||||
14 | my $self = shift; | ||||
15 | return $self->$orig(@_) | ||||
16 | || $self->_get_compatible_metaclass_by_role_reconciliation(@_); | ||||
17 | } | ||||
18 | |||||
19 | sub _get_compatible_metaclass_by_role_reconciliation { | ||||
20 | my $self = shift; | ||||
21 | my ($other_name) = @_; | ||||
22 | my $meta_name = blessed($self) ? $self->_real_ref_name : $self; | ||||
23 | |||||
24 | return unless Moose::Util::_classes_differ_by_roles_only( | ||||
25 | $meta_name, $other_name | ||||
26 | ); | ||||
27 | |||||
28 | return Moose::Util::_reconcile_roles_for_metaclass( | ||||
29 | $meta_name, $other_name | ||||
30 | ); | ||||
31 | } | ||||
32 | |||||
33 | 1 | 2µs | 1; | ||
34 | |||||
35 | # ABSTRACT: Some overrides for L<Class::MOP::Object> functionality | ||||
36 | |||||
37 | __END__ |