Filename | /Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/parent.pm |
Statements | Executed 536 statements in 3.29ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
53 | 53 | 53 | 8.35ms | 27.3ms | import (recurses: max depth 2, inclusive time 5.10ms) | parent::
70 | 1 | 1 | 415µs | 415µs | CORE:subst (opcode) | parent::
1 | 1 | 1 | 13µs | 26µs | BEGIN@2 | parent::
1 | 1 | 1 | 10µs | 20µs | BEGIN@25 | parent::
1 | 1 | 1 | 9µs | 36µs | BEGIN@3 | parent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package parent; | ||||
2 | 2 | 25µs | 2 | 38µs | # spent 26µs (13+13) within parent::BEGIN@2 which was called:
# once (13µs+13µs) by Class::MOP::Mixin::AttributeCore::BEGIN@9 at line 2 # spent 26µs making 1 call to parent::BEGIN@2
# spent 13µs making 1 call to strict::import |
3 | 2 | 121µs | 2 | 62µs | # spent 36µs (9+26) within parent::BEGIN@3 which was called:
# once (9µs+26µs) by Class::MOP::Mixin::AttributeCore::BEGIN@9 at line 3 # spent 36µs making 1 call to parent::BEGIN@3
# spent 26µs making 1 call to vars::import |
4 | 1 | 600ns | $VERSION = '0.225'; | ||
5 | |||||
6 | # spent 27.3ms (8.35+18.9) within parent::import which was called 53 times, avg 515µs/call:
# once (686µs+6.35ms) by Class::MOP::Method::Accessor::BEGIN@10 at line 10 of Class/MOP/Method/Accessor.pm
# once (616µs+5.74ms) by Moose::Meta::Attribute::BEGIN@19 at line 19 of Moose/Meta/Attribute.pm
# once (809µs+4.19ms) by Class::MOP::Class::BEGIN@20 at line 23 of Class/MOP/Class.pm
# once (227µs+3.46ms) by Moose::Meta::Method::Overridden::BEGIN@7 at line 7 of Moose/Meta/Method/Overridden.pm
# once (1.17ms+960µs) by Class::MOP::Method::Meta::BEGIN@12 at line 12 of Class/MOP/Method/Meta.pm
# once (809µs+164µs) by Class::MOP::Method::Constructor::BEGIN@10 at line 10 of Class/MOP/Method/Constructor.pm
# once (318µs+162µs) by Bio::SeqIO::BEGIN@335 at line 335 of Bio/SeqIO.pm
# once (258µs+99µs) by Class::MOP::Mixin::AttributeCore::BEGIN@9 at line 9 of Class/MOP/Mixin/AttributeCore.pm
# once (50µs+19µs) by Class::MOP::Attribute::BEGIN@13 at line 13 of Class/MOP/Attribute.pm
# once (40µs+13µs) by Moose::Meta::Method::Destructor::BEGIN@11 at line 12 of Moose/Meta/Method/Destructor.pm
# once (40µs+13µs) by Moose::Meta::Method::Constructor::BEGIN@9 at line 10 of Moose/Meta/Method/Constructor.pm
# once (36µs+14µs) by Moose::Meta::Role::BEGIN@19 at line 22 of Moose/Meta/Role.pm
# once (38µs+9µs) by Moose::Meta::Role::Attribute::BEGIN@10 at line 10 of Moose/Meta/Role/Attribute.pm
# once (37µs+9µs) by Moose::Meta::Method::Accessor::BEGIN@9 at line 10 of Moose/Meta/Method/Accessor.pm
# once (34µs+12µs) by Moose::Meta::Method::Augmented::BEGIN@7 at line 7 of Moose/Meta/Method/Augmented.pm
# once (33µs+11µs) by Moose::Meta::Role::Method::Conflicting::BEGIN@9 at line 9 of Moose/Meta/Role/Method/Conflicting.pm
# once (37µs+6µs) by Moose::Meta::Role::Composite::BEGIN@10 at line 10 of Moose/Meta/Role/Composite.pm
# once (33µs+9µs) by Class::MOP::Mixin::HasOverloads::BEGIN@15 at line 15 of Class/MOP/Mixin/HasOverloads.pm
# once (35µs+8µs) by Moose::Meta::Instance::BEGIN@9 at line 9 of Moose/Meta/Instance.pm
# once (34µs+8µs) by Class::MOP::Method::Wrapped::BEGIN@9 at line 9 of Class/MOP/Method/Wrapped.pm
# once (31µs+8µs) by Class::MOP::Overload::BEGIN@11 at line 11 of Class/MOP/Overload.pm
# once (29µs+9µs) by Class::MOP::Mixin::HasMethods::BEGIN@12 at line 12 of Class/MOP/Mixin/HasMethods.pm
# once (28µs+9µs) by Moose::Meta::Class::Immutable::Trait::BEGIN@10 at line 10 of Moose/Meta/Class/Immutable/Trait.pm
# once (27µs+9µs) by File::Temp::BEGIN@32 at line 32 of File/Temp.pm
# once (27µs+8µs) by Bio::SeqUtils::BEGIN@192 at line 192 of Bio/SeqUtils.pm
# once (25µs+8µs) by Moose::Meta::Method::Meta::BEGIN@7 at line 8 of Moose/Meta/Method/Meta.pm
# once (24µs+7µs) by Moose::Meta::Role::Application::RoleSummation::BEGIN@13 at line 13 of Moose/Meta/Role/Application/RoleSummation.pm
# once (24µs+6µs) by Moose::Meta::TypeConstraint::Parameterized::BEGIN@13 at line 13 of Moose/Meta/TypeConstraint/Parameterized.pm
# once (22µs+7µs) by Moose::Meta::Method::Delegation::BEGIN@9 at line 10 of Moose/Meta/Method/Delegation.pm
# once (24µs+5µs) by Moose::Meta::Role::Method::BEGIN@7 at line 7 of Moose/Meta/Role/Method.pm
# once (23µs+5µs) by Class::MOP::Instance::BEGIN@9 at line 9 of Class/MOP/Instance.pm
# once (22µs+6µs) by Moose::Meta::Role::Method::Required::BEGIN@11 at line 11 of Moose/Meta/Role/Method/Required.pm
# once (22µs+4µs) by Moose::Meta::Class::BEGIN@22 at line 22 of Moose/Meta/Class.pm
# once (21µs+5µs) by Moose::Meta::TypeConstraint::Parameterizable::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/Parameterizable.pm
# once (20µs+5µs) by Moose::Meta::TypeConstraint::Class::BEGIN@12 at line 12 of Moose/Meta/TypeConstraint/Class.pm
# once (20µs+5µs) by Moose::Meta::TypeConstraint::DuckType::BEGIN@15 at line 15 of Moose/Meta/TypeConstraint/DuckType.pm
# once (19µs+4µs) by Moose::Meta::TypeConstraint::Union::BEGIN@12 at line 12 of Moose/Meta/TypeConstraint/Union.pm
# once (18µs+6µs) by Moose::Meta::Role::Application::ToClass::BEGIN@12 at line 12 of Moose/Meta/Role/Application/ToClass.pm
# once (18µs+5µs) by Moose::Meta::Role::Application::ToRole::BEGIN@8 at line 8 of Moose/Meta/Role/Application/ToRole.pm
# once (16µs+5µs) by Class::MOP::Mixin::HasAttributes::BEGIN@9 at line 9 of Class/MOP/Mixin/HasAttributes.pm
# once (17µs+4µs) by Moose::Meta::TypeConstraint::Enum::BEGIN@11 at line 11 of Moose/Meta/TypeConstraint/Enum.pm
# once (17µs+4µs) by Moose::Meta::TypeConstraint::Registry::BEGIN@10 at line 10 of Moose/Meta/TypeConstraint/Registry.pm
# once (16µs+4µs) by Moose::Meta::TypeConstraint::Role::BEGIN@12 at line 12 of Moose/Meta/TypeConstraint/Role.pm
# once (16µs+5µs) by Moose::Meta::Role::Application::ToInstance::BEGIN@11 at line 11 of Moose/Meta/Role/Application/ToInstance.pm
# once (16µs+4µs) by Moose::Meta::TypeCoercion::Union::BEGIN@10 at line 10 of Moose/Meta/TypeCoercion/Union.pm
# once (1.60ms+-1.60ms) by Class::MOP::Module::BEGIN@7 at line 7 of Class/MOP/Module.pm
# once (28µs+-28µs) by Class::MOP::Package::BEGIN@12 at line 12 of Class/MOP/Package.pm
# once (23µs+-23µs) by Moose::Meta::Method::BEGIN@9 at line 9 of Moose/Meta/Method.pm
# once (36µs+-36µs) by Class::MOP::Method::Inlined::BEGIN@9 at line 9 of Class/MOP/Method/Inlined.pm
# once (708µs+-708µs) by Class::MOP::Method::BEGIN@9 at line 9 of Class/MOP/Method.pm
# once (22µs+-22µs) by Moose::Meta::Mixin::AttributeCore::BEGIN@7 at line 7 of Moose/Meta/Mixin/AttributeCore.pm
# once (37µs+-37µs) by Class::MOP::Method::Generated::BEGIN@9 at line 9 of Class/MOP/Method/Generated.pm
# once (18µs+-18µs) by Class::MOP::Object::BEGIN@7 at line 7 of Class/MOP/Object.pm | ||||
7 | 53 | 33µs | my $class = shift; | ||
8 | |||||
9 | 53 | 46µs | my $inheritor = caller(0); | ||
10 | |||||
11 | 53 | 67µs | if ( @_ and $_[0] eq '-norequire' ) { | ||
12 | shift @_; | ||||
13 | } else { | ||||
14 | 53 | 150µs | for ( my @filename = @_ ) { | ||
15 | 70 | 21µs | if ( $_ eq $inheritor ) { | ||
16 | warn "Class '$inheritor' tried to inherit from itself\n"; | ||||
17 | }; | ||||
18 | |||||
19 | 70 | 599µs | 70 | 415µs | s{::|'}{/}g; # spent 415µs making 70 calls to parent::CORE:subst, avg 6µs/call |
20 | 70 | 1.19ms | require "$_.pm"; # dies if the file is not found | ||
21 | } | ||||
22 | } | ||||
23 | |||||
24 | { | ||||
25 | 55 | 342µs | 2 | 30µs | # spent 20µs (10+10) within parent::BEGIN@25 which was called:
# once (10µs+10µs) by Class::MOP::Mixin::AttributeCore::BEGIN@9 at line 25 # spent 20µs making 1 call to parent::BEGIN@25
# spent 10µs making 1 call to strict::unimport |
26 | 53 | 689µs | push @{"$inheritor\::ISA"}, @_; | ||
27 | }; | ||||
28 | }; | ||||
29 | |||||
30 | 1 | 3µs | "All your base are belong to us" | ||
31 | |||||
32 | __END__ | ||||
# spent 415µs within parent::CORE:subst which was called 70 times, avg 6µs/call:
# 70 times (415µs+0s) by parent::import at line 19, avg 6µs/call |