← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:45:55 2015

Filename/Users/ap13/perl5/lib/perl5/Exporter.pm
StatementsExecuted 3286 statements in 10.8ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
2161891159.65ms19.9msExporter::::importExporter::import
15211.45ms1.58msExporter::::as_heavyExporter::as_heavy
79921346µs346µsExporter::::CORE:matchExporter::CORE:match (opcode)
65121260µs260µsExporter::::CORE:substExporter::CORE:subst (opcode)
141183µs1.64msExporter::::exportExporter::export
1116µs24µsExporter::::export_tagsExporter::export_tags
0000s0sExporter::::__ANON__[:64]Exporter::__ANON__[:64]
0000s0sExporter::::export_failExporter::export_fail
0000s0sExporter::::export_ok_tagsExporter::export_ok_tags
0000s0sExporter::::export_to_levelExporter::export_to_level
0000s0sExporter::::require_versionExporter::require_version
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Exporter;
2
3115µsrequire 5.006;
4
5# Be lean.
6#use strict;
7#no strict 'refs';
8
91500nsour $Debug = 0;
101100nsour $ExportLevel = 0;
111400nsour $Verbose ||= 0;
121600nsour $VERSION = '5.68';
131500nsour (%Cache);
14
15
# spent 1.58ms (1.45+126µs) within Exporter::as_heavy which was called 15 times, avg 105µs/call: # 14 times (1.44ms+122µs) by Exporter::export at line 25, avg 112µs/call # once (13µs+5µs) by Exporter::export_tags at line 85
sub as_heavy {
1615105µs require Exporter::Heavy;
17 # Unfortunately, this does not work if the caller is aliased as *name = \&foo
18 # Thus the need to create a lot of identical subroutines
191556µs my $c = (caller(1))[3];
201586µs1548µs $c =~ s/.*:://;
# spent 48µs making 15 calls to Exporter::CORE:subst, avg 3µs/call
211576µs \&{"Exporter::Heavy::heavy_$c"};
22}
23
24
# spent 1.64ms (83µs+1.56) within Exporter::export which was called 14 times, avg 117µs/call: # 14 times (83µs+1.56ms) by Exporter::import at line 62, avg 117µs/call
sub export {
251484µs289.56ms goto &{as_heavy()};
# spent 8.00ms making 14 calls to Exporter::Heavy::heavy_export, avg 571µs/call # spent 1.56ms making 14 calls to Exporter::as_heavy, avg 112µs/call
26}
27
28
# spent 19.9ms (9.65+10.2) within Exporter::import which was called 216 times, avg 92µs/call: # 15 times (210µs+1.87ms) by B::Deparse::BEGIN@29 at line 38 of B/Deparse.pm, avg 139µs/call # 13 times (468µs+27µs) by Bio::Roary::Output::NumberOfGroups::BEGIN@18 or Class::MOP::Class::BEGIN@18 or Graph::BEGIN@39 or Moose::Meta::Attribute::BEGIN@8 or Moose::Meta::Class::BEGIN@9 or Moose::Meta::Role::Application::BEGIN@9 or Moose::Meta::Role::Application::RoleSummation::BEGIN@8 or Moose::Meta::Role::Application::ToInstance::BEGIN@9 or Moose::Meta::Role::Attribute::BEGIN@7 or Moose::Meta::TypeConstraint::DuckType::BEGIN@10 or Moose::Meta::TypeConstraint::Union::BEGIN@10 or Moose::Util::BEGIN@12 or Moose::Util::MetaRole::BEGIN@8 at line 34 of List/Util.pm, avg 38µs/call # 2 times (434µs+4.69ms) by POSIX::import at line 30 of POSIX.pm, avg 2.56ms/call # once (47µs+1.46ms) by Getopt::Long::import at line 118 of Getopt/Long.pm # once (655µs+103µs) by B::Deparse::BEGIN@12 at line 22 of B/Deparse.pm # once (374µs+35µs) by IO::Seekable::BEGIN@104 at line 104 of IO/Seekable.pm # once (36µs+284µs) by Graph::AdjacencyMatrix::BEGIN@10 at line 10 of Graph/AdjacencyMatrix.pm # once (75µs+241µs) by Safe::BEGIN@46 at line 50 of Safe.pm # once (71µs+230µs) by Graph::BEGIN@13 at line 13 of Graph.pm # once (56µs+199µs) by Error::import at line 63 of Error.pm # once (246µs+8µs) by Bio::Root::IO::BEGIN@7 at line 7 of Bio/Root/IO.pm # once (15µs+229µs) by Graph::AdjacencyMap::Light::BEGIN@9 at line 9 of Graph/AdjacencyMap/Light.pm # once (213µs+8µs) by File::Temp::BEGIN@15 at line 15 of File/Temp.pm # once (14µs+195µs) by Graph::AdjacencyMap::Vertex::BEGIN@12 at line 12 of Graph/AdjacencyMap/Vertex.pm # once (16µs+190µs) by Graph::AdjacencyMap::Heavy::BEGIN@12 at line 12 of Graph/AdjacencyMap/Heavy.pm # once (31µs+138µs) by Storable::BEGIN@53 at line 54 of Storable.pm # once (149µs+12µs) by Package::DeprecationManager::BEGIN@10 at line 10 of Package/DeprecationManager.pm # once (144µs+6µs) by POSIX::BEGIN@11 at line 17 of POSIX.pm # once (114µs+11µs) by Package::DeprecationManager::BEGIN@11 at line 11 of Package/DeprecationManager.pm # once (115µs+9µs) by Moose::BEGIN@10 at line 10 of Moose.pm # once (111µs+8µs) by Data::OptList::BEGIN@10 at line 95 of Params/Util.pm # once (98µs+4µs) by Class::MOP::Attribute::BEGIN@9 at line 9 of Class/MOP/Attribute.pm # once (84µs+5µs) by Sub::Install::BEGIN@6 at line 6 of Sub/Install.pm # once (74µs+2µs) by Bio::Root::IO::BEGIN@4 at line 4 of Bio/Root/IO.pm # once (68µs+4µs) by Devel::OverloadInfo::BEGIN@18 at line 18 of Devel/OverloadInfo.pm # once (67µs+3µs) by Tie::Hash::BEGIN@188 at line 188 of Tie/Hash.pm # once (65µs+4µs) by Try::Tiny::BEGIN@15 at line 15 of Try/Tiny.pm # once (64µs+4µs) by Class::MOP::Mixin::HasOverloads::BEGIN@9 at line 9 of Class/MOP/Mixin/HasOverloads.pm # once (60µs+4µs) by Moose::Exporter::BEGIN@9 at line 9 of Moose/Exporter.pm # once (62µs+2µs) by Class::MOP::Overload::BEGIN@9 at line 9 of Class/MOP/Overload.pm # once (60µs+2µs) by Moose::Meta::Class::Immutable::Trait::BEGIN@8 at line 8 of Moose/Meta/Class/Immutable/Trait.pm # once (57µs+4µs) by Moose::Exporter::BEGIN@11 at line 11 of Moose/Exporter.pm # once (58µs+2µs) by Moose::Role::BEGIN@8 at line 8 of Moose/Role.pm # once (56µs+3µs) by Moose::BEGIN@12 at line 12 of Moose.pm # once (55µs+3µs) by Opcode::BEGIN@11 at line 11 of Opcode.pm # once (54µs+3µs) by Class::MOP::Mixin::HasMethods::BEGIN@9 at line 9 of Class/MOP/Mixin/HasMethods.pm # once (55µs+2µs) by Class::MOP::Method::Accessor::BEGIN@8 at line 8 of Class/MOP/Method/Accessor.pm # once (54µs+2µs) by File::Temp::BEGIN@16 at line 16 of File/Temp.pm # once (54µs+2µs) by Bio::Roary::Output::GroupsMultifastaNucleotide::BEGIN@19 at line 19 of lib/Bio/Roary/Output/GroupsMultifastaNucleotide.pm # once (52µs+2µs) by Class::MOP::Method::Constructor::BEGIN@7 at line 7 of Class/MOP/Method/Constructor.pm # once (52µs+2µs) by Class::MOP::Attribute::BEGIN@11 at line 11 of Class/MOP/Attribute.pm # once (51µs+2µs) by Class::MOP::Attribute::BEGIN@10 at line 10 of Class/MOP/Attribute.pm # once (48µs+3µs) by Bio::SeqAnalysisParserI::BEGIN@92 at line 92 of Bio/SeqAnalysisParserI.pm # once (49µs+2µs) by Class::MOP::Method::Constructor::BEGIN@8 at line 8 of Class/MOP/Method/Constructor.pm # once (49µs+2µs) by Bio::Roary::SplitGroups::BEGIN@15 at line 15 of lib/Bio/Roary/SplitGroups.pm # once (49µs+2µs) by Class::MOP::Method::Wrapped::BEGIN@7 at line 7 of Class/MOP/Method/Wrapped.pm # once (48µs+2µs) by Safe::BEGIN@29 at line 29 of Safe.pm # once (47µs+2µs) by Moose::Util::BEGIN@14 at line 14 of Moose/Util.pm # once (47µs+2µs) by Bio::SeqUtils::BEGIN@191 at line 191 of Bio/SeqUtils.pm # once (48µs+1µs) by Try::Tiny::BEGIN@1 at line 1 of (eval 20)[Try/Tiny.pm:18] # once (47µs+2µs) by Class::MOP::Method::Accessor::BEGIN@7 at line 7 of Class/MOP/Method/Accessor.pm # once (42µs+8µs) by Bio::Roary::AnnotateGroups::BEGIN@23 at line 23 of lib/Bio/Roary/AnnotateGroups.pm # once (47µs+2µs) by B::Deparse::BEGIN@11 at line 11 of B/Deparse.pm # once (47µs+2µs) by Class::MOP::Overload::BEGIN@8 at line 8 of Class/MOP/Overload.pm # once (45µs+3µs) by Bio::Location::SplitLocationI::BEGIN@82 at line 82 of Bio/Location/SplitLocationI.pm # once (46µs+2µs) by SelectSaver::BEGIN@39 at line 39 of SelectSaver.pm # once (46µs+2µs) by Moose::Meta::Method::Destructor::BEGIN@9 at line 9 of Moose/Meta/Method/Destructor.pm # once (46µs+2µs) by Bio::Factory::LocationFactoryI::BEGIN@92 at line 92 of Bio/Factory/LocationFactoryI.pm # once (45µs+2µs) by Class::MOP::Package::BEGIN@8 at line 38 of Sub/Exporter/Progressive.pm # once (46µs+2µs) by Moose::Util::MetaRole::BEGIN@6 at line 6 of Moose/Util/MetaRole.pm # once (44µs+3µs) by Class::MOP::Mixin::HasMethods::BEGIN@10 at line 10 of Class/MOP/Mixin/HasMethods.pm # once (45µs+2µs) by Class::Load::BEGIN@16 at line 16 of Class/Load.pm # once (45µs+1µs) by Moose::Util::BEGIN@11 at line 11 of Moose/Util.pm # once (45µs+1µs) by Graph::BEGIN@40 at line 40 of Graph.pm # once (44µs+2µs) by Data::Dumper::BEGIN@22 at line 22 of Data/Dumper.pm # once (43µs+2µs) by Module::Implementation::BEGIN@10 at line 10 of Module/Implementation.pm # once (43µs+2µs) by Moose::Exporter::BEGIN@13 at line 13 of Moose/Exporter.pm # once (42µs+2µs) by Eval::Closure::BEGIN@13 at line 13 of Eval/Closure.pm # once (42µs+3µs) by File::Path::BEGIN@6 at line 6 of File/Path.pm # once (43µs+2µs) by Class::MOP::Class::BEGIN@17 at line 17 of Class/MOP/Class.pm # once (41µs+2µs) by Clone::BEGIN@4 at line 4 of Clone.pm # once (41µs+2µs) by Bio::Roary::PostAnalysis::BEGIN@12 at line 12 of lib/Bio/Roary/PostAnalysis.pm # once (42µs+1µs) by Bio::Roary::SplitGroups::BEGIN@16 at line 16 of lib/Bio/Roary/SplitGroups.pm # once (41µs+2µs) by Safe::BEGIN@4 at line 4 of Safe.pm # once (41µs+2µs) by FindBin::BEGIN@80 at line 80 of FindBin.pm # once (41µs+2µs) by IO::Handle::BEGIN@263 at line 263 of IO/Handle.pm # once (41µs+2µs) by File::Temp::BEGIN@14 at line 14 of File/Temp.pm # once (40µs+1µs) by Moose::Meta::Method::Destructor::BEGIN@8 at line 8 of Moose/Meta/Method/Destructor.pm # once (40µs+2µs) by Bio::Roary::SplitGroups::BEGIN@13 at line 13 of lib/Bio/Roary/SplitGroups.pm # once (40µs+2µs) by Class::MOP::Instance::BEGIN@7 at line 7 of Class/MOP/Instance.pm # once (40µs+1µs) by File::Temp::BEGIN@11 at line 11 of File/Temp.pm # once (40µs+1µs) by Moose::Meta::Role::Composite::BEGIN@8 at line 8 of Moose/Meta/Role/Composite.pm # once (39µs+2µs) by Bio::Range::BEGIN@90 at line 90 of Bio/Range.pm # once (39µs+1µs) by SelectSaver::BEGIN@38 at line 38 of SelectSaver.pm # once (39µs+1µs) by Class::MOP::Package::BEGIN@7 at line 7 of Class/MOP/Package.pm # once (39µs+1µs) by Devel::StackTrace::BEGIN@12 at line 12 of Devel/StackTrace.pm # once (38µs+2µs) by Moose::Util::BEGIN@9 at line 9 of Moose/Util.pm # once (38µs+2µs) by Bio::Root::Root::BEGIN@4 at line 4 of Bio/Root/Root.pm # once (38µs+1µs) by Bio::SeqIO::BEGIN@333 at line 333 of Bio/SeqIO.pm # once (37µs+2µs) by Bio::Roary::Output::GroupsMultifastasNucleotide::BEGIN@20 at line 20 of lib/Bio/Roary/Output/GroupsMultifastasNucleotide.pm # once (36µs+2µs) by Devel::OverloadInfo::BEGIN@17 at line 17 of Devel/OverloadInfo.pm # once (37µs+1µs) by Moose::Meta::Attribute::BEGIN@7 at line 7 of Moose/Meta/Attribute.pm # once (36µs+2µs) by Bio::SeqFeatureI::BEGIN@107 at line 107 of Bio/SeqFeatureI.pm # once (37µs+1µs) by Moose::Meta::Object::Trait::BEGIN@4 at line 4 of Moose/Meta/Object/Trait.pm # once (37µs+1µs) by IO::BEGIN@6 at line 6 of IO.pm # once (37µs+2µs) by Class::MOP::BEGIN@11 at line 11 of Class/MOP.pm # once (38µs+0s) by Graph::MSTHeapElem::BEGIN@5 at line 5 of Graph/MSTHeapElem.pm # once (37µs+1µs) by IO::Seekable::BEGIN@98 at line 98 of IO/Seekable.pm # once (36µs+1µs) by FindBin::BEGIN@83 at line 83 of FindBin.pm # once (35µs+2µs) by File::Find::Rule::BEGIN@6 at line 6 of File/Find/Rule.pm # once (36µs+2µs) by Bio::FeatureHolderI::BEGIN@96 at line 96 of Bio/FeatureHolderI.pm # once (35µs+2µs) by Bio::Factory::ObjectFactoryI::BEGIN@78 at line 78 of Bio/Factory/ObjectFactoryI.pm # once (36µs+1µs) by Class::MOP::Mixin::HasOverloads::BEGIN@11 at line 11 of Class/MOP/Mixin/HasOverloads.pm # once (36µs+1000ns) by Class::MOP::Class::BEGIN@13 at line 13 of Class/MOP/Class.pm # once (35µs+2µs) by Bio::Roary::Output::GroupsMultifastaNucleotide::BEGIN@20 at line 20 of lib/Bio/Roary/Output/GroupsMultifastaNucleotide.pm # once (35µs+1µs) by Bio::Roary::CommandLine::RoaryPostAnalysis::BEGIN@16 at line 16 of lib/Bio/Roary/CommandLine/RoaryPostAnalysis.pm # once (36µs+0s) by Graph::BEGIN@38 at line 38 of Graph.pm # once (34µs+2µs) by Moose::Meta::TypeConstraint::BEGIN@14 at line 14 of Moose/Meta/TypeConstraint.pm # once (35µs+1µs) by Package::DeprecationManager::BEGIN@9 at line 9 of Package/DeprecationManager.pm # once (35µs+1µs) by Moose::Meta::Role::BEGIN@8 at line 8 of Moose/Meta/Role.pm # once (35µs+1µs) by IO::Handle::BEGIN@264 at line 264 of IO/Handle.pm # once (34µs+2µs) by Bio::Roary::AnnotateGroups::BEGIN@22 at line 22 of lib/Bio/Roary/AnnotateGroups.pm # once (34µs+1µs) by Moose::Meta::Method::Constructor::BEGIN@7 at line 7 of Moose/Meta/Method/Constructor.pm # once (34µs+1µs) by FindBin::BEGIN@84 at line 84 of FindBin.pm # once (34µs+1µs) by Class::MOP::Mixin::HasOverloads::BEGIN@10 at line 10 of Class/MOP/Mixin/HasOverloads.pm # once (34µs+1µs) by File::Grep::BEGIN@6 at line 6 of File/Grep.pm # once (34µs+1µs) by Moose::Meta::Attribute::BEGIN@21 at line 21 of Moose/Meta/Attribute.pm # once (34µs+1µs) by Moose::Exporter::BEGIN@7 at line 7 of Moose/Exporter.pm # once (33µs+1µs) by Moose::Util::TypeConstraints::Builtins::BEGIN@7 at line 7 of Moose/Util/TypeConstraints/Builtins.pm # once (32µs+3µs) by Bio::Roary::SplitGroups::BEGIN@14 at line 14 of lib/Bio/Roary/SplitGroups.pm # once (31µs+3µs) by Bio::LocationI::BEGIN@77 at line 77 of Bio/LocationI.pm # once (32µs+2µs) by Bio::Roary::AnnotateGroups::BEGIN@25 at line 25 of lib/Bio/Roary/AnnotateGroups.pm # once (32µs+1µs) by Eval::Closure::BEGIN@16 at line 16 of Eval/Closure.pm # once (32µs+1µs) by Class::MOP::Method::Inlined::BEGIN@7 at line 7 of Class/MOP/Method/Inlined.pm # once (32µs+1µs) by Moose::Meta::Method::Accessor::BEGIN@7 at line 7 of Moose/Meta/Method/Accessor.pm # once (31µs+1µs) by Moose::Meta::Attribute::BEGIN@9 at line 9 of Moose/Meta/Attribute.pm # once (30µs+1µs) by Bio::Factory::ObjectBuilderI::BEGIN@96 at line 96 of Bio/Factory/ObjectBuilderI.pm # once (29µs+2µs) by Bio::Root::IO::BEGIN@6 at line 6 of Bio/Root/IO.pm # once (30µs+900ns) by Class::MOP::Class::BEGIN@15 at line 15 of Class/MOP/Class.pm # once (30µs+2µs) by Moose::Meta::TypeConstraint::Parameterized::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/Parameterized.pm # once (31µs+0s) by Graph::BEGIN@35 at line 35 of Graph.pm # once (29µs+1µs) by File::Temp::Dir::BEGIN@1574 at line 1574 of File/Temp.pm # once (30µs+800ns) by Class::MOP::Class::BEGIN@16 at line 16 of Class/MOP/Class.pm # once (29µs+1µs) by Moose::Meta::TypeConstraint::BEGIN@16 at line 16 of Moose/Meta/TypeConstraint.pm # once (29µs+1µs) by Bio::Roary::SplitGroups::BEGIN@17 at line 17 of lib/Bio/Roary/SplitGroups.pm # once (30µs+0s) by Graph::BEGIN@34 at line 34 of Graph.pm # once (29µs+1µs) by Class::MOP::Method::BEGIN@7 at line 7 of Class/MOP/Method.pm # once (28µs+1µs) by Moose::Meta::Method::Delegation::BEGIN@7 at line 7 of Moose/Meta/Method/Delegation.pm # once (27µs+1µs) by Bio::Root::RootI::BEGIN@3 at line 3 of Bio/Root/RootI.pm # once (27µs+1µs) by Moose::Meta::Role::Application::ToInstance::BEGIN@8 at line 8 of Moose/Meta/Role/Application/ToInstance.pm # once (27µs+1µs) by Bio::RangeI::BEGIN@92 at line 92 of Bio/RangeI.pm # once (28µs+0s) by Class::Load::XS::BEGIN@9 at line 9 of Class/Load/XS.pm # once (28µs+0s) by Cwd::BEGIN@171 at line 171 of Cwd.pm # once (27µs+800ns) by Graph::AdjacencyMap::Vertex::BEGIN@15 at line 15 of Graph/AdjacencyMap/Vertex.pm # once (27µs+800ns) by Moose::Meta::Class::BEGIN@10 at line 10 of Moose/Meta/Class.pm # once (27µs+0s) by Getopt::Long::BEGIN@25 at line 25 of Getopt/Long.pm # once (26µs+0s) by Graph::SPTHeapElem::BEGIN@5 at line 5 of Graph/SPTHeapElem.pm # once (24µs+900ns) by Class::MOP::Method::Meta::BEGIN@8 at line 8 of Class/MOP/Method/Meta.pm # once (24µs+900ns) by Moose::Meta::Role::Application::ToClass::BEGIN@8 at line 8 of Moose/Meta/Role/Application/ToClass.pm # once (24µs+1µs) by Moose::Meta::TypeConstraint::DuckType::BEGIN@9 at line 9 of Moose/Meta/TypeConstraint/DuckType.pm # once (24µs+900ns) by Class::MOP::Method::Meta::BEGIN@7 at line 7 of Class/MOP/Method/Meta.pm # once (24µs+900ns) by Moose::Util::TypeConstraints::BEGIN@5 at line 5 of Moose/Util/TypeConstraints.pm # once (23µs+800ns) by Moose::Meta::TypeConstraint::Parameterizable::BEGIN@14 at line 14 of Moose/Meta/TypeConstraint/Parameterizable.pm # once (23µs+1µs) by File::Temp::BEGIN@18 at line 18 of File/Temp.pm # once (23µs+900ns) by Moose::Meta::Role::Attribute::BEGIN@8 at line 8 of Moose/Meta/Role/Attribute.pm # once (23µs+800ns) by Graph::AdjacencyMap::Light::BEGIN@12 at line 12 of Graph/AdjacencyMap/Light.pm # once (23µs+800ns) by Class::MOP::Mixin::HasAttributes::BEGIN@7 at line 7 of Class/MOP/Mixin/HasAttributes.pm # once (23µs+800ns) by Class::MOP::Mixin::BEGIN@7 at line 7 of Class/MOP/Mixin.pm # once (23µs+700ns) by Moose::Meta::Role::Application::RoleSummation::BEGIN@9 at line 9 of Moose/Meta/Role/Application/RoleSummation.pm # once (22µs+900ns) by Exception::Class::BEGIN@10 at line 10 of Exception/Class.pm # once (22µs+600ns) by Moose::Meta::Class::BEGIN@11 at line 11 of Moose/Meta/Class.pm # once (22µs+900ns) by Exception::Class::Base::BEGIN@8 at line 8 of Exception/Class/Base.pm # once (22µs+700ns) by Moose::Util::TypeConstraints::Builtins::BEGIN@9 at line 9 of Moose/Util/TypeConstraints/Builtins.pm # once (22µs+800ns) by Moose::Meta::TypeConstraint::Registry::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/Registry.pm # once (22µs+700ns) by Eval::Closure::BEGIN@15 at line 15 of Eval/Closure.pm # once (22µs+900ns) by Class::MOP::Mixin::AttributeCore::BEGIN@7 at line 7 of Class/MOP/Mixin/AttributeCore.pm # once (22µs+0s) by Text::Glob::BEGIN@3 at line 3 of Text/Glob.pm # once (22µs+800ns) by Moose::Meta::TypeCoercion::Union::BEGIN@8 at line 8 of Moose/Meta/TypeCoercion/Union.pm # once (22µs+700ns) by Number::Compare::BEGIN@3 at line 3 of Number/Compare.pm # once (21µs+700ns) by File::Find::Rule::BEGIN@8 at line 8 of File/Find/Rule.pm # once (22µs+0s) by Moose::Meta::TypeConstraint::Class::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/Class.pm # once (21µs+700ns) by Class::MOP::Object::BEGIN@8 at line 8 of Class/MOP/Object.pm # once (20µs+800ns) by Moose::Meta::TypeConstraint::BEGIN@15 at line 15 of Moose/Meta/TypeConstraint.pm # once (20µs+700ns) by Moose::Meta::Role::Application::ToClass::BEGIN@10 at line 10 of Moose/Meta/Role/Application/ToClass.pm # once (20µs+0s) by Sub::Identify::BEGIN@4 at line 4 of Sub/Identify.pm # once (20µs+0s) by Bio::Root::IO::BEGIN@5 at line 5 of Bio/Root/IO.pm # once (20µs+0s) by Graph::BEGIN@28 at line 28 of Graph.pm # once (19µs+0s) by Graph::BEGIN@29 at line 29 of Graph.pm # once (17µs+0s) by Moose::Meta::TypeConstraint::Role::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/Role.pm # once (17µs+0s) by Graph::AdjacencyMap::Light::BEGIN@15 at line 15 of Graph/AdjacencyMap/Light.pm # once (16µs+0s) by Graph::BEGIN@30 at line 30 of Graph.pm # once (16µs+0s) by File::Temp::BEGIN@17 at line 17 of File/Temp.pm # once (16µs+0s) by Bio::Roary::CommandLine::Common::BEGIN@13 at line 13 of lib/Bio/Roary/CommandLine/Common.pm # once (15µs+0s) by Try::Tiny::BEGIN@12 at line 12 of Try/Tiny.pm # once (15µs+0s) by Moose::Meta::TypeConstraint::DuckType::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/DuckType.pm # once (14µs+0s) by Moose::Meta::TypeConstraint::Enum::BEGIN@8 at line 8 of Moose/Meta/TypeConstraint/Enum.pm # once (12µs+0s) by Graph::AdjacencyMap::Light::BEGIN@14 at line 14 of Graph/AdjacencyMap/Light.pm # once (11µs+0s) by Devel::OverloadInfo::BEGIN@22 at line 22 of Devel/OverloadInfo.pm # once (6µs+0s) by File::Temp::BEGIN@44 at line 44 of File/Temp.pm
sub import {
29216116µs my $pkg = shift;
30216228µs my $callpkg = caller($ExportLevel);
31
3221676µs if ($pkg eq "Exporter" and @_ and $_[0] eq "import") {
33313µs *{$callpkg."::import"} = \&import;
34313µs return;
35 }
36
37 # We *need* to treat @{"$pkg\::EXPORT_FAIL"} since Carp uses it :-(
38213388µs my $exports = \@{"$pkg\::EXPORT"};
39 # But, avoid creating things if they don't exist, which saves a couple of
40 # hundred bytes per package processed.
41213303µs my $fail = ${$pkg . '::'}{EXPORT_FAIL} && \@{"$pkg\::EXPORT_FAIL"};
42213127µs return export $pkg, $callpkg, @_
43 if $Verbose or $Debug or $fail && @$fail > 1;
44213187µs my $export_cache = ($Cache{$pkg} ||= {});
45213362µs my $args = @_ or @_ = @$exports;
46
4721390µs if ($args and not %$export_cache) {
48 s/^&//, $export_cache->{$_} = 1
49221.60ms636212µs foreach (@$exports, @{"$pkg\::EXPORT_OK"});
# spent 212µs making 636 calls to Exporter::CORE:subst, avg 334ns/call
50 }
5121327µs my $heavy;
52 # Try very hard not to use {} and hence have to enter scope on the foreach
53 # We bomb out of the loop with last as soon as heavy is set.
54213155µs if ($args or $fail) {
55 ($heavy = (/\W/ or $args and not exists $export_cache->{$_}
56 or $fail and @$fail and $_ eq $fail->[0])) and last
571611.63ms455270µs foreach (@_);
# spent 270µs making 455 calls to Exporter::CORE:match, avg 594ns/call
58 } else {
59 ($heavy = /\W/) and last
6052594µs34476µs foreach (@_);
# spent 76µs making 344 calls to Exporter::CORE:match, avg 221ns/call
61 }
62213138µs141.64ms return export $pkg, $callpkg, ($args ? @_ : ()) if $heavy;
# spent 1.64ms making 14 calls to Exporter::export, avg 117µs/call
63 local $SIG{__WARN__} =
641991.02ms sub {require Carp; &Carp::carp} if not $SIG{__WARN__};
65 # shortcut for the common case of no type character
661993.25ms *{"$callpkg\::$_"} = \&{"$pkg\::$_"} foreach @_;
67}
68
69# Default methods
70
71sub export_fail {
72 my $self = shift;
73 @_;
74}
75
76# Unfortunately, caller(1)[3] "does not work" if the caller is aliased as
77# *name = \&foo. Thus the need to create a lot of identical subroutines
78# Otherwise we could have aliased them to export().
79
80sub export_to_level {
81 goto &{as_heavy()};
82}
83
84
# spent 24µs (6+18) within Exporter::export_tags which was called: # once (6µs+18µs) by Bio::Root::IO::BEGIN@75 at line 73 of File/Temp.pm
sub export_tags {
8518µs240µs goto &{as_heavy()};
# spent 22µs making 1 call to Exporter::Heavy::heavy_export_tags # spent 18µs making 1 call to Exporter::as_heavy
86}
87
88sub export_ok_tags {
89 goto &{as_heavy()};
90}
91
92sub require_version {
93 goto &{as_heavy()};
94}
95
96110µs1;
97__END__
 
# spent 346µs within Exporter::CORE:match which was called 799 times, avg 433ns/call: # 455 times (270µs+0s) by Exporter::import at line 57, avg 594ns/call # 344 times (76µs+0s) by Exporter::import at line 60, avg 221ns/call
sub Exporter::CORE:match; # opcode
# spent 260µs within Exporter::CORE:subst which was called 651 times, avg 399ns/call: # 636 times (212µs+0s) by Exporter::import at line 49, avg 334ns/call # 15 times (48µs+0s) by Exporter::as_heavy at line 20, avg 3µs/call
sub Exporter::CORE:subst; # opcode