← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mentat.storage.mongo.pl
  Run on Tue Jun 24 10:04:38 2014
Reported on Tue Jun 24 10:05:07 2014

Filename/usr/local/lib/perl/5.14.2/Moose/Meta/Object/Trait.pm
StatementsExecuted 6 statements in 164µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11110µs10µsMoose::Meta::Object::Trait::::BEGIN@3Moose::Meta::Object::Trait::BEGIN@3
1118µs48µsMoose::Meta::Object::Trait::::BEGIN@10Moose::Meta::Object::Trait::BEGIN@10
0000s0sMoose::Meta::Object::Trait::::_get_compatible_metaclassMoose::Meta::Object::Trait::_get_compatible_metaclass
0000s0sMoose::Meta::Object::Trait::::_get_compatible_metaclass_by_role_reconciliationMoose::Meta::Object::Trait::_get_compatible_metaclass_by_role_reconciliation
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2package Moose::Meta::Object::Trait;
3
# spent 10µs within Moose::Meta::Object::Trait::BEGIN@3 which was called: # once (10µs+0s) by Module::Runtime::require_module at line 5
BEGIN {
415µs $Moose::Meta::Object::Trait::AUTHORITY = 'cpan:STEVAN';
5136µs110µs}
# spent 10µs making 1 call to Moose::Meta::Object::Trait::BEGIN@3
6{
721µs $Moose::Meta::Object::Trait::VERSION = '2.1005';
8}
9
102119µs287µs
# spent 48µs (8+40) within Moose::Meta::Object::Trait::BEGIN@10 which was called: # once (8µs+40µs) by Module::Runtime::require_module at line 10
use Scalar::Util qw(blessed);
# spent 48µs making 1 call to Moose::Meta::Object::Trait::BEGIN@10 # spent 40µs making 1 call to Exporter::import
11
12sub _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
19sub _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
3313µs1;
34
35# ABSTRACT: Some overrides for L<Class::MOP::Object> functionality
36
37__END__