← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:13 2015

Filename/usr/share/perl5/vendor_perl/Exporter.pm
StatementsExecuted 3099 statements in 7.27ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1981671265.98ms11.4msExporter::::importExporter::import
35212.62ms2.73msExporter::::as_heavyExporter::as_heavy
3411191µs2.91msExporter::::exportExporter::export
1118µs19µ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
3119µsrequire 5.006;
4
5# Be lean.
6#use strict;
7#no strict 'refs';
8
91600nsour $Debug = 0;
101200nsour $ExportLevel = 0;
111600nsour $Verbose ||= 0;
121800nsour $VERSION = '5.68';
131500nsour (%Cache);
14
15
# spent 2.73ms (2.62+114µs) within Exporter::as_heavy which was called 35 times, avg 78µs/call: # 34 times (2.61ms+114µs) by Exporter::export at line 25, avg 80µs/call # once (11µs+0s) by Exporter::export_tags at line 85
sub as_heavy {
1635146µ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
1935138µs my $c = (caller(1))[3];
203591µs $c =~ s/.*:://;
2135184µs \&{"Exporter::Heavy::heavy_$c"};
22}
23
24
# spent 2.91ms (191µs+2.72) within Exporter::export which was called 34 times, avg 86µs/call: # 34 times (191µs+2.72ms) by Exporter::import at line 62, avg 86µs/call
sub export {
2534193µs685.26ms goto &{as_heavy()};
# spent 2.72ms making 34 calls to Exporter::as_heavy, avg 80µs/call # spent 2.54ms making 34 calls to Exporter::Heavy::heavy_export, avg 75µs/call
26}
27
28
# spent 11.4ms (5.98+5.45) within Exporter::import which was called 198 times, avg 58µs/call: # 31 times (590µs+4.78ms) by Error::import at line 63 of Error.pm, avg 173µs/call # 2 times (462µs+123µs) by POSIX::import at line 30 of POSIX.pm, avg 292µs/call # once (19µs+332µs) by Foswiki::Store::Rcs::Handler::BEGIN@37 at line 37 of /var/www/foswikidev/core/lib/Foswiki/Store/Rcs/Handler.pm # once (195µs+0s) by POSIX::BEGIN@11 at line 11 of POSIX.pm # once (169µs+0s) by File::Temp::BEGIN@14 at line 14 of File/Temp.pm # once (21µs+87µs) by Foswiki::Logger::PlainFile::EventIterator::BEGIN@7 at line 7 of /var/www/foswikidev/core/lib/Foswiki/Logger/PlainFile.pm # once (96µs+0s) by Foswiki::Meta::BEGIN@113 at line 113 of /var/www/foswikidev/core/lib/Foswiki/Meta.pm # once (95µs+0s) by Foswiki::Request::BEGIN@37 at line 147 of IO/File.pm # once (17µs+69µs) by Storable::BEGIN@53 at line 54 of Storable.pm # once (18µs+65µs) by Foswiki::Logger::PlainFile::BEGIN@40 at line 40 of /var/www/foswikidev/core/lib/Foswiki/Logger/PlainFile.pm # once (67µs+0s) by CGI::BEGIN@28 at line 28 of CGI.pm # once (67µs+0s) by CGI::Carp::import at line 370 of CGI/Carp.pm # once (58µs+0s) by Foswiki::BEGIN@46 at line 46 of /var/www/foswikidev/core/lib/Foswiki.pm # once (53µs+0s) by Foswiki::Form::BEGIN@38 at line 38 of /var/www/foswikidev/core/lib/Foswiki/Form.pm # once (52µs+0s) by Foswiki::Configure::Load::BEGIN@21 at line 21 of /var/www/foswikidev/core/lib/Foswiki/Configure/Load.pm # once (49µs+0s) by CGI::Carp::BEGIN@332 at line 332 of CGI/Carp.pm # once (48µs+0s) by Foswiki::Configure::FileUtil::BEGIN@18 at line 18 of /var/www/foswikidev/core/lib/Foswiki/Configure/FileUtil.pm # once (45µs+0s) by Foswiki::BEGIN@28 at line 28 of setlib.cfg # once (43µs+0s) by Foswiki::Users::BaseUserMapping::BEGIN@37 at line 37 of /var/www/foswikidev/core/lib/Foswiki/Users/BaseUserMapping.pm # once (41µs+0s) by CGI::BEGIN@3 at line 3 of CGI.pm # once (40µs+0s) by Time::ParseDate::BEGIN@7 at line 7 of Time/ParseDate.pm # once (40µs+0s) by Foswiki::Plugins::DirectedGraphPlugin::BEGIN@9 at line 9 of /var/www/foswikidev/core/lib/Foswiki/Plugins/DirectedGraphPlugin.pm # once (39µs+0s) by WC::BEGIN@22 at line 22 of /var/www/foswikidev/core/lib/Foswiki/Plugins/WysiwygPlugin/Constants.pm # once (38µs+0s) by Foswiki::Configure::Load::BEGIN@22 at line 22 of /var/www/foswikidev/core/lib/Foswiki/Configure/Load.pm # once (38µs+0s) by Foswiki::Serialise::BEGIN@92 at line 92 of /var/www/foswikidev/core/lib/Foswiki/Serialise.pm # once (36µs+0s) by Tie::Hash::BEGIN@188 at line 188 of Tie/Hash.pm # once (35µs+0s) by Foswiki::Access::BEGIN@14 at line 14 of /var/www/foswikidev/core/lib/Foswiki/Access.pm # once (34µs+0s) by Data::Dumper::BEGIN@22 at line 22 of Data/Dumper.pm # once (34µs+0s) by I18N::LangTags::Detect::BEGIN@16 at line 16 of I18N/LangTags/Detect.pm # once (33µs+0s) by Foswiki::Configure::Load::BEGIN@20 at line 20 of /var/www/foswikidev/core/lib/Foswiki/Configure/Load.pm # once (33µs+0s) by Foswiki::Configure::Reporter::BEGIN@7 at line 7 of /var/www/foswikidev/core/lib/Foswiki/Configure/Reporter.pm # once (32µs+0s) by Foswiki::Configure::FileUtil::BEGIN@16 at line 16 of /var/www/foswikidev/core/lib/Foswiki/Configure/FileUtil.pm # once (31µs+0s) by Foswiki::Plugins::DirectedGraphPlugin::BEGIN@179 at line 179 of /var/www/foswikidev/core/lib/Foswiki/Plugins/DirectedGraphPlugin.pm # once (31µs+0s) by Foswiki::Plugins::TimeCalcPlugin::BEGIN@38 at line 38 of /var/www/foswikidev/core/lib/Foswiki/Plugins/TimeCalcPlugin.pm # once (31µs+0s) by Time::Local::BEGIN@4 at line 4 of Time/Local.pm # once (31µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@6 at line 6 of /var/www/foswikidev/core/lib/Foswiki/Store/Interfaces/QueryAlgorithm.pm # once (30µs+0s) by Foswiki::Plugins::CommentPlugin::BEGIN@9 at line 9 of /var/www/foswikidev/core/lib/Foswiki/Plugins/CommentPlugin.pm # once (30µs+0s) by Encode::BEGIN@48 at line 48 of Encode.pm # once (30µs+0s) by Foswiki::Plugins::WysiwygPlugin::Handlers::BEGIN@9 at line 9 of /var/www/foswikidev/core/lib/Foswiki/Plugins/WysiwygPlugin/Handlers.pm # once (30µs+0s) by Foswiki::Configure::LoadSpec::BEGIN@59 at line 59 of /var/www/foswikidev/core/lib/Foswiki/Configure/LoadSpec.pm # once (30µs+0s) by Foswiki::Plugins::JHotDrawPlugin::BEGIN@26 at line 26 of /var/www/foswikidev/core/lib/Foswiki/Plugins/JHotDrawPlugin.pm # once (30µs+0s) by Foswiki::LoginManager::ApacheLogin::BEGIN@26 at line 26 of /var/www/foswikidev/core/lib/Foswiki/LoginManager/ApacheLogin.pm # once (30µs+0s) by Foswiki::Compatibility::BEGIN@6 at line 6 of /var/www/foswikidev/core/lib/Foswiki/Compatibility.pm # once (30µs+0s) by Foswiki::Contrib::MailerContrib::Subscription::BEGIN@17 at line 17 of /var/www/foswikidev/core/lib/Foswiki/Contrib/MailerContrib/Subscription.pm # once (29µs+0s) by Foswiki::Engine::CLI::BEGIN@18 at line 18 of /var/www/foswikidev/core/lib/Foswiki/Engine/CLI.pm # once (29µs+0s) by Foswiki::Iterator::PagerIterator::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/Iterator/PagerIterator.pm # once (29µs+0s) by Foswiki::Contrib::MailerContrib::BEGIN@21 at line 21 of /var/www/foswikidev/core/lib/Foswiki/Contrib/MailerContrib.pm # once (29µs+0s) by Foswiki::Configure::Pluggable::BEGIN@52 at line 52 of /var/www/foswikidev/core/lib/Foswiki/Configure/Pluggable.pm # once (28µs+0s) by Foswiki::Serialise::Embedded::BEGIN@20 at line 20 of /var/www/foswikidev/core/lib/Foswiki/Serialise/Embedded.pm # once (28µs+0s) by Foswiki::Users::BEGIN@61 at line 61 of /var/www/foswikidev/core/lib/Foswiki/Users.pm # once (28µs+0s) by Foswiki::Contrib::JEditableContrib::JEDITABLE::BEGIN@5 at line 5 of /var/www/foswikidev/core/lib/Foswiki/Contrib/JEditableContrib/JEDITABLE.pm # once (28µs+0s) by Foswiki::Store::SearchAlgorithms::Forking::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/Store/SearchAlgorithms/Forking.pm # once (28µs+0s) by IO::Seekable::BEGIN@98 at line 98 of IO/Seekable.pm # once (28µs+0s) by Foswiki::LoginManager::BEGIN@53 at line 53 of /var/www/foswikidev/core/lib/Foswiki/LoginManager.pm # once (28µs+0s) by Foswiki::Plugins::DirectedGraphPlugin::BEGIN@8 at line 8 of /var/www/foswikidev/core/lib/Foswiki/Plugins/DirectedGraphPlugin.pm # once (28µs+0s) by Foswiki::Configure::Load::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/Configure/Load.pm # once (28µs+0s) by Foswiki::Logger::PlainFile::EventIterator::BEGIN@5 at line 5 of /var/www/foswikidev/core/lib/Foswiki/Logger/PlainFile.pm # once (27µs+0s) by Foswiki::Prefs::BaseBackend::BEGIN@16 at line 16 of /var/www/foswikidev/core/lib/Foswiki/Prefs/BaseBackend.pm # once (27µs+0s) by Foswiki::Render::BEGIN@14 at line 14 of /var/www/foswikidev/core/lib/Foswiki/Render.pm # once (27µs+0s) by Foswiki::Plugins::WysiwygPlugin::BEGIN@28 at line 28 of /var/www/foswikidev/core/lib/Foswiki/Plugins/WysiwygPlugin.pm # once (27µs+0s) by CGI::Cookie::BEGIN@21 at line 21 of CGI/Cookie.pm # once (27µs+0s) by Foswiki::Contrib::JsonRpcContrib::Response::BEGIN@22 at line 22 of /var/www/foswikidev/core/lib/Foswiki/Contrib/JsonRpcContrib/Response.pm # once (27µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@344 at line 344 of /var/www/foswikidev/core/lib/Foswiki/Store/Interfaces/QueryAlgorithm.pm # once (27µs+0s) by Foswiki::Attach::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/Attach.pm # once (27µs+0s) by Foswiki::Contrib::MailerContrib::Change::BEGIN@14 at line 14 of /var/www/foswikidev/core/lib/Foswiki/Contrib/MailerContrib/Change.pm # once (27µs+0s) by Time::ParseDate::BEGIN@5 at line 5 of Time/ParseDate.pm # once (27µs+0s) by Foswiki::Users::BaseUserMapping::BEGIN@36 at line 36 of /var/www/foswikidev/core/lib/Foswiki/Users/BaseUserMapping.pm # once (27µs+0s) by Time::ParseDate::BEGIN@6 at line 6 of Time/ParseDate.pm # once (26µs+0s) by Foswiki::Render::Anchors::BEGIN@18 at line 18 of /var/www/foswikidev/core/lib/Foswiki/Render/Anchors.pm # once (26µs+0s) by Foswiki::Users::BaseUserMapping::BEGIN@40 at line 40 of /var/www/foswikidev/core/lib/Foswiki/Users/BaseUserMapping.pm # once (26µs+0s) by Foswiki::Request::Upload::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/Request/Upload.pm # once (26µs+0s) by Foswiki::Plugins::SubscribePlugin::BEGIN@17 at line 17 of /var/www/foswikidev/core/lib/Foswiki/Plugins/SubscribePlugin.pm # once (26µs+0s) by Foswiki::Plugins::ActionTrackerPlugin::BEGIN@5 at line 5 of /var/www/foswikidev/core/lib/Foswiki/Plugins/ActionTrackerPlugin.pm # once (26µs+0s) by Foswiki::If::Parser::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/If/Parser.pm # once (26µs+0s) by Foswiki::Time::BEGIN@135 at line 135 of /var/www/foswikidev/core/lib/Foswiki/Time.pm # once (26µs+0s) by Foswiki::Iterator::ProcessIterator::BEGIN@16 at line 16 of /var/www/foswikidev/core/lib/Foswiki/Iterator/ProcessIterator.pm # once (26µs+0s) by Foswiki::Store::Rcs::RcsWrapHandler::BEGIN@21 at line 21 of /var/www/foswikidev/core/lib/Foswiki/Store/Rcs/RcsWrapHandler.pm # once (26µs+0s) by Foswiki::Plugins::ConfigurePlugin::BEGIN@34 at line 34 of /var/www/foswikidev/core/lib/Foswiki/Plugins/ConfigurePlugin.pm # once (26µs+0s) by Foswiki::Users::TopicUserMapping::BEGIN@33 at line 33 of /var/www/foswikidev/core/lib/Foswiki/Users/TopicUserMapping.pm # once (26µs+0s) by Foswiki::Configure::Wizard::BEGIN@38 at line 38 of /var/www/foswikidev/core/lib/Foswiki/Configure/Wizard.pm # once (26µs+0s) by Foswiki::Plugins::TinyMCEPlugin::BEGIN@8 at line 8 of /var/www/foswikidev/core/lib/Foswiki/Plugins/TinyMCEPlugin.pm # once (26µs+0s) by Foswiki::Templates::BEGIN@35 at line 35 of /var/www/foswikidev/core/lib/Foswiki/Templates.pm # once (26µs+0s) by Foswiki::Form::ListFieldDefinition::BEGIN@16 at line 16 of /var/www/foswikidev/core/lib/Foswiki/Form/ListFieldDefinition.pm # once (26µs+0s) by Foswiki::Query::Node::BEGIN@34 at line 34 of /var/www/foswikidev/core/lib/Foswiki/Query/Node.pm # once (26µs+0s) by Foswiki::UI::View::BEGIN@17 at line 17 of /var/www/foswikidev/core/lib/Foswiki/UI/View.pm # once (26µs+0s) by Foswiki::Iterator::AggregateEventIterator::BEGIN@6 at line 6 of /var/www/foswikidev/core/lib/Foswiki/Iterator/AggregateEventIterator.pm # once (26µs+0s) by Foswiki::Iterator::FilterIterator::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/Iterator/FilterIterator.pm # once (26µs+0s) by Foswiki::Search::ResultSet::BEGIN@24 at line 24 of /var/www/foswikidev/core/lib/Foswiki/Search/ResultSet.pm # once (26µs+0s) by Foswiki::Configure::Value::BEGIN@59 at line 59 of /var/www/foswikidev/core/lib/Foswiki/Configure/Value.pm # once (26µs+0s) by Foswiki::Configure::Checker::BEGIN@33 at line 33 of /var/www/foswikidev/core/lib/Foswiki/Configure/Checker.pm # once (26µs+0s) by Foswiki::Contrib::MailerContrib::WebNotify::BEGIN@18 at line 18 of /var/www/foswikidev/core/lib/Foswiki/Contrib/MailerContrib/WebNotify.pm # once (26µs+0s) by Foswiki::I18N::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/I18N.pm # once (25µs+0s) by Foswiki::Store::Rcs::Store::BEGIN@39 at line 39 of /var/www/foswikidev/core/lib/Foswiki/Store/Rcs/Store.pm # once (25µs+0s) by Foswiki::Access::TopicACLAccess::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/Access/TopicACLAccess.pm # once (25µs+0s) by Foswiki::Users::Password::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/Users/Password.pm # once (25µs+0s) by Foswiki::Store::Rcs::Handler::BEGIN@31 at line 31 of /var/www/foswikidev/core/lib/Foswiki/Store/Rcs/Handler.pm # once (25µs+0s) by Foswiki::Prefs::Parser::BEGIN@20 at line 20 of /var/www/foswikidev/core/lib/Foswiki/Prefs/Parser.pm # once (25µs+0s) by Foswiki::Configure::Query::BEGIN@7 at line 7 of /var/www/foswikidev/core/lib/Foswiki/Configure/Query.pm # once (25µs+0s) by Foswiki::Plugins::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/Plugins.pm # once (25µs+0s) by Foswiki::Request::BEGIN@35 at line 35 of /var/www/foswikidev/core/lib/Foswiki/Request.pm # once (25µs+0s) by Foswiki::Form::FieldDefinition::BEGIN@20 at line 20 of /var/www/foswikidev/core/lib/Foswiki/Form/FieldDefinition.pm # once (25µs+0s) by Foswiki::Sandbox::BEGIN@33 at line 33 of /var/www/foswikidev/core/lib/Foswiki/Sandbox.pm # once (25µs+0s) by Foswiki::If::OP_allows::BEGIN@18 at line 18 of /var/www/foswikidev/core/lib/Foswiki/If/OP_allows.pm # once (25µs+0s) by Foswiki::Iterator::NumberRangeIterator::BEGIN@17 at line 17 of /var/www/foswikidev/core/lib/Foswiki/Iterator/NumberRangeIterator.pm # once (24µs+0s) by Foswiki::Query::Parser::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/Parser.pm # once (24µs+0s) by Foswiki::Prefs::BEGIN@75 at line 75 of /var/www/foswikidev/core/lib/Foswiki/Prefs.pm # once (24µs+0s) by Foswiki::Contrib::MailerContrib::Subscriber::BEGIN@19 at line 19 of /var/www/foswikidev/core/lib/Foswiki/Contrib/MailerContrib/Subscriber.pm # once (24µs+0s) by Foswiki::Attrs::BEGIN@49 at line 49 of /var/www/foswikidev/core/lib/Foswiki/Attrs.pm # once (24µs+0s) by Foswiki::OopsException::BEGIN@97 at line 97 of /var/www/foswikidev/core/lib/Foswiki/OopsException.pm # once (24µs+0s) by Foswiki::Time::BEGIN@36 at line 36 of /var/www/foswikidev/core/lib/Foswiki/Time.pm # once (24µs+0s) by Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@6 at line 6 of /var/www/foswikidev/core/lib/Foswiki/Store/Interfaces/SearchAlgorithm.pm # once (24µs+0s) by Foswiki::Configure::Dependency::BEGIN@22 at line 22 of /var/www/foswikidev/core/lib/Foswiki/Configure/Dependency.pm # once (24µs+0s) by IO::File::BEGIN@130 at line 130 of IO/File.pm # once (24µs+0s) by Foswiki::Func::BEGIN@58 at line 58 of /var/www/foswikidev/core/lib/Foswiki/Func.pm # once (24µs+0s) by Foswiki::Logger::BEGIN@7 at line 7 of /var/www/foswikidev/core/lib/Foswiki/Logger.pm # once (24µs+0s) by Foswiki::Iterator::MergeEventIterator::BEGIN@6 at line 6 of /var/www/foswikidev/core/lib/Foswiki/Iterator/MergeEventIterator.pm # once (24µs+0s) by Foswiki::Search::InfoCache::BEGIN@30 at line 30 of /var/www/foswikidev/core/lib/Foswiki/Search/InfoCache.pm # once (24µs+0s) by IO::Handle::BEGIN@263 at line 263 of IO/Handle.pm # once (24µs+0s) by Foswiki::MetaCache::BEGIN@20 at line 20 of /var/www/foswikidev/core/lib/Foswiki/MetaCache.pm # once (24µs+0s) by File::Temp::BEGIN@10 at line 10 of File/Temp.pm # once (24µs+0s) by Foswiki::Query::OP_ref::BEGIN@17 at line 17 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_ref.pm # once (24µs+0s) by IO::File::BEGIN@131 at line 131 of IO/File.pm # once (24µs+0s) by Foswiki::Search::Node::BEGIN@15 at line 15 of /var/www/foswikidev/core/lib/Foswiki/Search/Node.pm # once (24µs+0s) by Foswiki::ListIterator::BEGIN@22 at line 22 of /var/www/foswikidev/core/lib/Foswiki/ListIterator.pm # once (24µs+0s) by Foswiki::Search::BEGIN@14 at line 14 of /var/www/foswikidev/core/lib/Foswiki/Search.pm # once (24µs+0s) by Foswiki::UserMapping::BEGIN@37 at line 37 of /var/www/foswikidev/core/lib/Foswiki/UserMapping.pm # once (24µs+0s) by Foswiki::Iterator::EventIterator::BEGIN@6 at line 6 of /var/www/foswikidev/core/lib/Foswiki/Iterator/EventIterator.pm # once (24µs+0s) by Foswiki::Infix::Parser::BEGIN@23 at line 23 of /var/www/foswikidev/core/lib/Foswiki/Infix/Parser.pm # once (24µs+0s) by Foswiki::Response::BEGIN@21 at line 21 of /var/www/foswikidev/core/lib/Foswiki/Response.pm # once (24µs+0s) by Foswiki::Logger::PlainFile::BEGIN@33 at line 33 of /var/www/foswikidev/core/lib/Foswiki/Logger/PlainFile.pm # once (24µs+0s) by Foswiki::BEGIN@47 at line 47 of /var/www/foswikidev/core/lib/Foswiki.pm # once (23µs+0s) by Foswiki::Iterator::BEGIN@23 at line 23 of /var/www/foswikidev/core/lib/Foswiki/Iterator.pm # once (23µs+0s) by Foswiki::UI::BEGIN@164 at line 164 of /var/www/foswikidev/core/lib/Foswiki/UI.pm # once (23µs+0s) by Foswiki::Plugins::RenderFormPlugin::Core::BEGIN@1019 at line 1019 of /var/www/foswikidev/core/lib/Foswiki/Plugins/RenderFormPlugin/Core.pm # once (23µs+0s) by Foswiki::Validation::BEGIN@7 at line 7 of /var/www/foswikidev/core/lib/Foswiki/Validation.pm # once (23µs+0s) by Foswiki::Serialise::BEGIN@7 at line 7 of /var/www/foswikidev/core/lib/Foswiki/Serialise.pm # once (23µs+0s) by Foswiki::Plugin::BEGIN@10 at line 10 of /var/www/foswikidev/core/lib/Foswiki/Plugin.pm # once (23µs+0s) by File::Temp::BEGIN@13 at line 13 of File/Temp.pm # once (23µs+0s) by Time::Timezone::BEGIN@10 at line 10 of Time/Timezone.pm # once (23µs+0s) by CGI::Session::BEGIN@6 at line 6 of CGI/Session.pm # once (23µs+0s) by Time::JulianDay::BEGIN@5 at line 5 of Time/JulianDay.pm # once (23µs+0s) by SelectSaver::BEGIN@38 at line 38 of SelectSaver.pm # once (22µs+0s) by Foswiki::Engine::BEGIN@20 at line 20 of /var/www/foswikidev/core/lib/Foswiki/Engine.pm # once (22µs+0s) by Foswiki::Infix::Node::BEGIN@16 at line 16 of /var/www/foswikidev/core/lib/Foswiki/Infix/Node.pm # once (22µs+0s) by Foswiki::Address::BEGIN@66 at line 66 of /var/www/foswikidev/core/lib/Foswiki/Address.pm # once (22µs+0s) by Foswiki::Store::BEGIN@59 at line 59 of /var/www/foswikidev/core/lib/Foswiki/Store.pm # once (22µs+0s) by IO::Handle::BEGIN@264 at line 264 of IO/Handle.pm # once (22µs+0s) by Foswiki::Meta::BEGIN@112 at line 112 of /var/www/foswikidev/core/lib/Foswiki/Meta.pm # once (22µs+0s) by File::Temp::BEGIN@17 at line 17 of File/Temp.pm # once (22µs+0s) by Time::JulianDay::BEGIN@6 at line 6 of Time/JulianDay.pm # once (21µs+0s) by WC::BEGIN@23 at line 23 of /var/www/foswikidev/core/lib/Foswiki/Plugins/WysiwygPlugin/Constants.pm # once (21µs+0s) by IO::Seekable::BEGIN@104 at line 104 of IO/Seekable.pm # once (21µs+0s) by SelectSaver::BEGIN@39 at line 39 of SelectSaver.pm # once (21µs+0s) by Foswiki::Meta::BEGIN@545 at line 545 of /var/www/foswikidev/core/lib/Foswiki/Meta.pm # once (20µs+0s) by IO::BEGIN@6 at line 6 of IO.pm # once (20µs+0s) by Assert::BEGIN@13 at line 13 of /var/www/foswikidev/core/lib/Assert.pm # once (20µs+0s) by Cwd::BEGIN@171 at line 171 of Cwd.pm # once (20µs+0s) by IO::File::BEGIN@133 at line 133 of IO/File.pm # once (19µs+0s) by File::Temp::Dir::BEGIN@1573 at line 1573 of File/Temp.pm # once (19µs+0s) by Foswiki::MetaCache::BEGIN@21 at line 21 of /var/www/foswikidev/core/lib/Foswiki/MetaCache.pm # once (18µs+0s) by Time::JulianDay::BEGIN@30 at line 30 of Time/JulianDay.pm # once (18µs+0s) by File::Temp::BEGIN@15 at line 15 of File/Temp.pm # once (17µs+0s) by Foswiki::Users::BaseUserMapping::BEGIN@39 at line 39 of /var/www/foswikidev/core/lib/Foswiki/Users/BaseUserMapping.pm # once (17µs+0s) by Foswiki::Request::BEGIN@38 at line 38 of /var/www/foswikidev/core/lib/Foswiki/Request.pm # once (17µs+0s) by File::Path::BEGIN@6 at line 6 of File/Path.pm # once (12µs+0s) by Crypt::PasswdMD5::BEGIN@65 at line 65 of Crypt/PasswdMD5.pm # once (9µs+0s) by File::Temp::BEGIN@16 at line 16 of File/Temp.pm
sub import {
2919887µs my $pkg = shift;
30198524µs my $callpkg = caller($ExportLevel);
31
3219865µs if ($pkg eq "Exporter" and @_ and $_[0] eq "import") {
33 *{$callpkg."::import"} = \&import;
34 return;
35 }
36
37 # We *need* to treat @{"$pkg\::EXPORT_FAIL"} since Carp uses it :-(
38198305µ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.
41198224µs my $fail = ${$pkg . '::'}{EXPORT_FAIL} && \@{"$pkg\::EXPORT_FAIL"};
4219889µs return export $pkg, $callpkg, @_
43 if $Verbose or $Debug or $fail && @$fail > 1;
44198130µs my $export_cache = ($Cache{$pkg} ||= {});
45198288µs my $args = @_ or @_ = @$exports;
46
4719856µs if ($args and not %$export_cache) {
48 s/^&//, $export_cache->{$_} = 1
4915704µs foreach (@$exports, @{"$pkg\::EXPORT_OK"});
50 }
5119822µ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.
5419897µ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
5776314µs foreach (@_);
58 } else {
59 ($heavy = /\W/) and last
60122464µs foreach (@_);
61 }
62198177µs342.91ms return export $pkg, $callpkg, ($args ? @_ : ()) if $heavy;
# spent 2.91ms making 34 calls to Exporter::export, avg 86µs/call
63 local $SIG{__WARN__} =
64164154µs sub {require Carp; &Carp::carp} if not $SIG{__WARN__};
65 # shortcut for the common case of no type character
661642.78ms *{"$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 19µs (8+11) within Exporter::export_tags which was called: # once (8µs+11µs) by Foswiki::Sandbox::BEGIN@37 at line 72 of File/Temp.pm
sub export_tags {
8517µs236µs goto &{as_heavy()};
# spent 25µs making 1 call to Exporter::Heavy::heavy_export_tags # spent 11µ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
9618µs1;
97__END__