Filename | /usr/share/perl/5.14/constant.pm |
Statements | Executed 2868 statements in 6.76ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
107 | 107 | 21 | 3.53ms | 4.46ms | import | constant::
113 | 1 | 1 | 349µs | 349µs | CORE:match (opcode) | constant::
116 | 4 | 1 | 194µs | 194µs | CORE:regcomp (opcode) | constant::
1 | 1 | 1 | 40µs | 40µs | BEGIN@2 | constant::
1 | 1 | 1 | 25µs | 25µs | BEGIN@25 | constant::
1 | 1 | 1 | 21µs | 29µs | BEGIN@3 | constant::
1 | 1 | 1 | 17µs | 43µs | BEGIN@114 | constant::
3 | 3 | 1 | 16µs | 16µs | CORE:qr (opcode) | constant::
1 | 1 | 1 | 16µs | 38µs | BEGIN@29 | constant::
1 | 1 | 1 | 13µs | 74µs | BEGIN@6 | constant::
1 | 1 | 1 | 13µs | 157µs | BEGIN@4 | constant::
1 | 1 | 1 | 13µs | 35µs | BEGIN@52 | constant::
0 | 0 | 0 | 0s | 0s | __ANON__[:136] | constant::
0 | 0 | 0 | 0s | 0s | __ANON__[:140] | constant::
0 | 0 | 0 | 0s | 0s | __ANON__[:142] | constant::
0 | 0 | 0 | 0s | 0s | __ANON__[:31] | constant::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package constant; | ||||
2 | 2 | 104µs | 1 | 40µs | # spent 40µs within constant::BEGIN@2 which was called:
# once (40µs+0s) by Time::Local::BEGIN@27 at line 2 # spent 40µs making 1 call to constant::BEGIN@2 |
3 | 2 | 49µs | 2 | 36µs | # spent 29µs (21+7) within constant::BEGIN@3 which was called:
# once (21µs+7µs) by Time::Local::BEGIN@27 at line 3 # spent 29µs making 1 call to constant::BEGIN@3
# spent 7µs making 1 call to strict::import |
4 | 2 | 58µs | 2 | 300µs | # spent 157µs (13+143) within constant::BEGIN@4 which was called:
# once (13µs+143µs) by Time::Local::BEGIN@27 at line 4 # spent 157µs making 1 call to constant::BEGIN@4
# spent 143µs making 1 call to warnings::register::import |
5 | |||||
6 | 2 | 259µs | 2 | 134µs | # spent 74µs (13+60) within constant::BEGIN@6 which was called:
# once (13µs+60µs) by Time::Local::BEGIN@27 at line 6 # spent 74µs making 1 call to constant::BEGIN@6
# spent 60µs making 1 call to vars::import |
7 | 1 | 1µs | $VERSION = '1.21'; | ||
8 | |||||
9 | #======================================================================= | ||||
10 | |||||
11 | # Some names are evil choices. | ||||
12 | 1 | 12µs | my %keywords = map +($_, 1), qw{ BEGIN INIT CHECK END DESTROY AUTOLOAD }; | ||
13 | 1 | 3µs | $keywords{UNITCHECK}++ if $] > 5.009; | ||
14 | |||||
15 | 1 | 11µs | my %forced_into_main = map +($_, 1), | ||
16 | qw{ STDIN STDOUT STDERR ARGV ARGVOUT ENV INC SIG }; | ||||
17 | |||||
18 | 1 | 14µs | my %forbidden = (%keywords, %forced_into_main); | ||
19 | |||||
20 | 1 | 1µs | my $str_end = $] >= 5.006 ? "\\z" : "\\Z"; | ||
21 | 1 | 56µs | 2 | 38µs | my $normal_constant_name = qr/^_?[^\W_0-9]\w*$str_end/; # spent 26µs making 1 call to constant::CORE:regcomp
# spent 12µs making 1 call to constant::CORE:qr |
22 | 1 | 20µs | 2 | 12µs | my $tolerable = qr/^[A-Za-z_]\w*$str_end/; # spent 10µs making 1 call to constant::CORE:regcomp
# spent 2µs making 1 call to constant::CORE:qr |
23 | 1 | 19µs | 2 | 11µs | my $boolean = qr/^[01]?$str_end/; # spent 9µs making 1 call to constant::CORE:regcomp
# spent 2µs making 1 call to constant::CORE:qr |
24 | |||||
25 | # spent 25µs within constant::BEGIN@25 which was called:
# once (25µs+0s) by Time::Local::BEGIN@27 at line 32 | ||||
26 | # We'd like to do use constant _CAN_PCS => $] > 5.009002 | ||||
27 | # but that's a bit tricky before we load the constant module :-) | ||||
28 | # By doing this, we save 1 run time check for *every* call to import. | ||||
29 | 2 | 122µs | 2 | 61µs | # spent 38µs (16+23) within constant::BEGIN@29 which was called:
# once (16µs+23µs) by Time::Local::BEGIN@27 at line 29 # spent 38µs making 1 call to constant::BEGIN@29
# spent 23µs making 1 call to strict::unimport |
30 | 2 | 25µs | my $const = $] > 5.009002; | ||
31 | *_CAN_PCS = sub () {$const}; | ||||
32 | 1 | 136µs | 1 | 25µs | } # spent 25µs making 1 call to constant::BEGIN@25 |
33 | |||||
34 | #======================================================================= | ||||
35 | # import() - import symbols into user's namespace | ||||
36 | # | ||||
37 | # What we actually do is define a function in the caller's namespace | ||||
38 | # which returns the value. The function we create will normally | ||||
39 | # be inlined as a constant, thereby avoiding further sub calling | ||||
40 | # overhead. | ||||
41 | #======================================================================= | ||||
42 | # spent 4.46ms (3.53+931µs) within constant::import which was called 107 times, avg 42µs/call:
# once (84µs+24µs) by MongoDB::BSON::Binary::BEGIN@28 at line 29 of MongoDB/BSON/Binary.pm
# once (71µs+20µs) by Time::Local::BEGIN@27 at line 27 of Time/Local.pm
# once (71µs+17µs) by Math::BigInt::Calc::BEGIN@1909 at line 1909 of Math/BigInt/Calc.pm
# once (57µs+19µs) by DateTime::TimeZone::BEGIN@21 at line 21 of DateTime/TimeZone.pm
# once (58µs+15µs) by Try::Tiny::ScopeGuard::BEGIN@146 at line 146 of Try/Tiny.pm
# once (55µs+16µs) by Value::Convertor::BEGIN@73 at line 73 of Value/Convertor.pm
# once (53µs+15µs) by DateTime::Duration::BEGIN@23 at line 23 of DateTime/Duration.pm
# once (52µs+15µs) by DateTime::BEGIN@73 at line 73 of DateTime.pm
# once (57µs+9µs) by DateTime::BEGIN@75 at line 75 of DateTime.pm
# once (53µs+13µs) by Value::Convertor::BEGIN@103 at line 103 of Value/Convertor.pm
# once (49µs+16µs) by DateTime::TimeZone::BEGIN@22 at line 22 of DateTime/TimeZone.pm
# once (48µs+15µs) by DateTime::TimeZone::BEGIN@25 at line 25 of DateTime/TimeZone.pm
# once (48µs+13µs) by Time::Local::BEGIN@28 at line 28 of Time/Local.pm
# once (48µs+13µs) by Value::Convertor::BEGIN@74 at line 74 of Value/Convertor.pm
# once (46µs+15µs) by DateTime::TimeZone::BEGIN@31 at line 31 of DateTime/TimeZone.pm
# once (48µs+13µs) by Value::Convertor::BEGIN@137 at line 137 of Value/Convertor.pm
# once (46µs+14µs) by DateTime::TimeZone::BEGIN@26 at line 26 of DateTime/TimeZone.pm
# once (45µs+14µs) by DateTime::TimeZone::BEGIN@27 at line 27 of DateTime/TimeZone.pm
# once (48µs+11µs) by Value::Convertor::BEGIN@88 at line 88 of Value/Convertor.pm
# once (44µs+14µs) by DateTime::TimeZone::BEGIN@30 at line 30 of DateTime/TimeZone.pm
# once (47µs+12µs) by Value::Convertor::BEGIN@84 at line 84 of Value/Convertor.pm
# once (45µs+14µs) by DateTime::TimeZone::BEGIN@28 at line 28 of DateTime/TimeZone.pm
# once (47µs+11µs) by Value::Convertor::BEGIN@87 at line 87 of Value/Convertor.pm
# once (46µs+12µs) by Time::Local::BEGIN@29 at line 29 of Time/Local.pm
# once (46µs+12µs) by DateTime::BEGIN@79 at line 79 of DateTime.pm
# once (44µs+13µs) by DateTime::TimeZone::BEGIN@29 at line 29 of DateTime/TimeZone.pm
# once (45µs+12µs) by Value::Convertor::BEGIN@78 at line 78 of Value/Convertor.pm
# once (50µs+8µs) by DateTime::BEGIN@76 at line 76 of DateTime.pm
# once (46µs+12µs) by Value::Convertor::BEGIN@76 at line 76 of Value/Convertor.pm
# once (46µs+11µs) by Value::Convertor::BEGIN@82 at line 82 of Value/Convertor.pm
# once (45µs+13µs) by Value::Convertor::BEGIN@98 at line 98 of Value/Convertor.pm
# once (45µs+11µs) by Value::Convertor::BEGIN@79 at line 79 of Value/Convertor.pm
# once (45µs+11µs) by Value::Convertor::BEGIN@95 at line 95 of Value/Convertor.pm
# once (45µs+11µs) by Value::Convertor::BEGIN@83 at line 83 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@90 at line 90 of Value/Convertor.pm
# once (44µs+11µs) by DateTime::BEGIN@81 at line 81 of DateTime.pm
# once (47µs+8µs) by DateTime::BEGIN@77 at line 77 of DateTime.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@96 at line 96 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@101 at line 101 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@91 at line 91 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@99 at line 99 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@86 at line 86 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@80 at line 80 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@94 at line 94 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@100 at line 100 of Value/Convertor.pm
# once (44µs+11µs) by Value::Convertor::BEGIN@92 at line 92 of Value/Convertor.pm
# once (25µs+9µs) by Log::Filter::Re::BEGIN@107 at line 107 of Log/Filter/Re.pm
# once (26µs+7µs) by JSON::Backend::XS::BEGIN@9 at line 9 of (eval 52)[JSON.pm:268]
# once (23µs+10µs) by Class::MOP::Method::Meta::BEGIN@16 at line 16 of Class/MOP/Method/Meta.pm
# once (26µs+7µs) by Log::Core::Essentials::BEGIN@99 at line 99 of Log/Core/Essentials.pm
# once (25µs+7µs) by Mentat::Storage::Mongo::BEGIN@178 at line 178 of Mentat/Storage/Mongo.pm
# once (26µs+6µs) by Log::Writer::Email::BEGIN@101 at line 101 of Log/Writer/Email.pm
# once (25µs+7µs) by Log::Writer::Handle::BEGIN@143 at line 143 of Log/Writer/Handle.pm
# once (24µs+6µs) by Log::Writer::Syslog::BEGIN@113 at line 113 of Log/Writer/Syslog.pm
# once (24µs+7µs) by Log::Channel::Channel::BEGIN@96 at line 96 of Log/Channel/Channel.pm
# once (24µs+6µs) by Log::Filter::Threshold::BEGIN@109 at line 109 of Log/Filter/Threshold.pm
# once (23µs+7µs) by Log::Filter::Set::BEGIN@105 at line 105 of Log/Filter/Set.pm
# once (23µs+7µs) by Eval::Closure::BEGIN@20 at line 20 of Eval/Closure.pm
# once (23µs+6µs) by Log::Filter::Module::BEGIN@98 at line 98 of Log/Filter/Module.pm
# once (23µs+5µs) by Log::Filter::Re::BEGIN@114 at line 114 of Log/Filter/Re.pm
# once (22µs+5µs) by Mentat::Storage::Mongo::BEGIN@181 at line 181 of Mentat/Storage/Mongo.pm
# once (23µs+5µs) by Log::Filter::Module::BEGIN@104 at line 104 of Log/Filter/Module.pm
# once (22µs+5µs) by Log::Core::Essentials::BEGIN@102 at line 102 of Log/Core/Essentials.pm
# once (22µs+5µs) by Log::Core::Essentials::BEGIN@105 at line 105 of Log/Core/Essentials.pm
# once (21µs+6µs) by Log::Filter::Threshold::BEGIN@110 at line 110 of Log/Filter/Threshold.pm
# once (21µs+6µs) by JSON::Backend::XS::BEGIN@11 at line 11 of (eval 52)[JSON.pm:268]
# once (21µs+5µs) by Log::Writer::Email::BEGIN@102 at line 102 of Log/Writer/Email.pm
# once (20µs+6µs) by Log::Writer::Handle::BEGIN@145 at line 145 of Log/Writer/Handle.pm
# once (21µs+5µs) by Mentat::Storage::Mongo::BEGIN@183 at line 183 of Mentat/Storage/Mongo.pm
# once (21µs+5µs) by Log::Writer::Syslog::BEGIN@114 at line 114 of Log/Writer/Syslog.pm
# once (20µs+5µs) by Log::Filter::Module::BEGIN@99 at line 99 of Log/Filter/Module.pm
# once (20µs+5µs) by Log::Writer::Handle::BEGIN@144 at line 144 of Log/Writer/Handle.pm
# once (20µs+5µs) by Log::Filter::Threshold::BEGIN@112 at line 112 of Log/Filter/Threshold.pm
# once (20µs+5µs) by Log::Channel::Channel::BEGIN@97 at line 97 of Log/Channel/Channel.pm
# once (20µs+6µs) by Log::Filter::Re::BEGIN@108 at line 108 of Log/Filter/Re.pm
# once (20µs+5µs) by JSON::Backend::XS::BEGIN@18 at line 18 of (eval 52)[JSON.pm:268]
# once (20µs+5µs) by Log::Core::Essentials::BEGIN@100 at line 100 of Log/Core/Essentials.pm
# once (20µs+5µs) by Log::Filter::Re::BEGIN@110 at line 110 of Log/Filter/Re.pm
# once (20µs+5µs) by Log::Filter::Set::BEGIN@106 at line 106 of Log/Filter/Set.pm
# once (20µs+5µs) by Log::Filter::Module::BEGIN@105 at line 105 of Log/Filter/Module.pm
# once (20µs+5µs) by Log::Core::Essentials::BEGIN@114 at line 114 of Log/Core/Essentials.pm
# once (20µs+5µs) by Log::Core::Essentials::BEGIN@112 at line 112 of Log/Core/Essentials.pm
# once (20µs+5µs) by Log::Core::Essentials::BEGIN@101 at line 101 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Filter::Threshold::BEGIN@115 at line 115 of Log/Filter/Threshold.pm
# once (20µs+5µs) by Log::Filter::Threshold::BEGIN@113 at line 113 of Log/Filter/Threshold.pm
# once (20µs+5µs) by Log::Writer::Handle::BEGIN@146 at line 146 of Log/Writer/Handle.pm
# once (19µs+5µs) by Log::Filter::Module::BEGIN@101 at line 101 of Log/Filter/Module.pm
# once (20µs+5µs) by Log::Core::Essentials::BEGIN@106 at line 106 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Filter::Set::BEGIN@109 at line 109 of Log/Filter/Set.pm
# once (20µs+5µs) by Log::Filter::Re::BEGIN@111 at line 111 of Log/Filter/Re.pm
# once (19µs+5µs) by Log::Filter::Threshold::BEGIN@116 at line 116 of Log/Filter/Threshold.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@118 at line 118 of Log/Core/Essentials.pm
# once (20µs+5µs) by Log::Core::Essentials::BEGIN@107 at line 107 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Filter::Set::BEGIN@108 at line 108 of Log/Filter/Set.pm
# once (19µs+5µs) by Log::Filter::Module::BEGIN@102 at line 102 of Log/Filter/Module.pm
# once (19µs+5µs) by Log::Filter::Set::BEGIN@112 at line 112 of Log/Filter/Set.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@113 at line 113 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@110 at line 110 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Writer::Handle::BEGIN@148 at line 148 of Log/Writer/Handle.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@103 at line 103 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Filter::Re::BEGIN@113 at line 113 of Log/Filter/Re.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@115 at line 115 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@117 at line 117 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Filter::Set::BEGIN@111 at line 111 of Log/Filter/Set.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@116 at line 116 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@104 at line 104 of Log/Core/Essentials.pm
# once (19µs+5µs) by Log::Core::Essentials::BEGIN@111 at line 111 of Log/Core/Essentials.pm | ||||
43 | 1177 | 1.58ms | my $class = shift; | ||
44 | return unless @_; # Ignore 'use constant;' | ||||
45 | my $constants; | ||||
46 | my $multiple = ref $_[0]; | ||||
47 | my $pkg = caller; | ||||
48 | my $flush_mro; | ||||
49 | my $symtab; | ||||
50 | |||||
51 | 107 | 160µs | if (_CAN_PCS) { | ||
52 | 2 | 604µs | 2 | 58µs | # spent 35µs (13+22) within constant::BEGIN@52 which was called:
# once (13µs+22µs) by Time::Local::BEGIN@27 at line 52 # spent 35µs making 1 call to constant::BEGIN@52
# spent 22µs making 1 call to strict::unimport |
53 | 107 | 67µs | $symtab = \%{$pkg . '::'}; | ||
54 | }; | ||||
55 | |||||
56 | 214 | 198µs | if ( $multiple ) { | ||
57 | if (ref $_[0] ne 'HASH') { | ||||
58 | require Carp; | ||||
59 | Carp::croak("Invalid reference type '".ref(shift)."' not 'HASH'"); | ||||
60 | } | ||||
61 | $constants = shift; | ||||
62 | } else { | ||||
63 | unless (defined $_[0]) { | ||||
64 | require Carp; | ||||
65 | Carp::croak("Can't use undef as constant name"); | ||||
66 | } | ||||
67 | $constants->{+shift} = undef; | ||||
68 | } | ||||
69 | |||||
70 | foreach my $name ( keys %$constants ) { | ||||
71 | # Normal constant name | ||||
72 | 226 | 1.29ms | 226 | 498µs | if ($name =~ $normal_constant_name and !$forbidden{$name}) { # spent 349µs making 113 calls to constant::CORE:match, avg 3µs/call
# spent 148µs making 113 calls to constant::CORE:regcomp, avg 1µs/call |
73 | # Everything is okay | ||||
74 | |||||
75 | # Name forced into main, but we're not in main. Fatal. | ||||
76 | } elsif ($forced_into_main{$name} and $pkg ne 'main') { | ||||
77 | require Carp; | ||||
78 | Carp::croak("Constant name '$name' is forced into main::"); | ||||
79 | |||||
80 | # Starts with double underscore. Fatal. | ||||
81 | } elsif ($name =~ /^__/) { | ||||
82 | require Carp; | ||||
83 | Carp::croak("Constant name '$name' begins with '__'"); | ||||
84 | |||||
85 | # Maybe the name is tolerable | ||||
86 | } elsif ($name =~ $tolerable) { | ||||
87 | # Then we'll warn only if you've asked for warnings | ||||
88 | if (warnings::enabled()) { | ||||
89 | if ($keywords{$name}) { | ||||
90 | warnings::warn("Constant name '$name' is a Perl keyword"); | ||||
91 | } elsif ($forced_into_main{$name}) { | ||||
92 | warnings::warn("Constant name '$name' is " . | ||||
93 | "forced into package main::"); | ||||
94 | } | ||||
95 | } | ||||
96 | |||||
97 | # Looks like a boolean | ||||
98 | # use constant FRED == fred; | ||||
99 | } elsif ($name =~ $boolean) { | ||||
100 | require Carp; | ||||
101 | if (@_) { | ||||
102 | Carp::croak("Constant name '$name' is invalid"); | ||||
103 | } else { | ||||
104 | Carp::croak("Constant name looks like boolean value"); | ||||
105 | } | ||||
106 | |||||
107 | } else { | ||||
108 | # Must have bad characters | ||||
109 | require Carp; | ||||
110 | Carp::croak("Constant name '$name' has invalid characters"); | ||||
111 | } | ||||
112 | |||||
113 | { | ||||
114 | 2 | 511µs | 2 | 70µs | # spent 43µs (17+26) within constant::BEGIN@114 which was called:
# once (17µs+26µs) by Time::Local::BEGIN@27 at line 114 # spent 43µs making 1 call to constant::BEGIN@114
# spent 26µs making 1 call to strict::unimport |
115 | 339 | 378µs | my $full_name = "${pkg}::$name"; | ||
116 | $declared{$full_name}++; | ||||
117 | 339 | 554µs | if ($multiple || @_ == 1) { | ||
118 | my $scalar = $multiple ? $constants->{$name} : $_[0]; | ||||
119 | |||||
120 | # Work around perl bug #xxxxx: Sub names (actually glob | ||||
121 | # names in general) ignore the UTF8 flag. So we have to | ||||
122 | # turn it off to get the "right" symbol table entry. | ||||
123 | 113 | 131µs | utf8::is_utf8 $name and utf8::encode $name; # spent 131µs making 113 calls to utf8::is_utf8, avg 1µs/call | ||
124 | |||||
125 | # The constant serves to optimise this entire block out on | ||||
126 | # 5.8 and earlier. | ||||
127 | 333 | 507µs | if (_CAN_PCS && $symtab && !exists $symtab->{$name}) { | ||
128 | # No typeglob yet, so we can use a reference as space- | ||||
129 | # efficient proxy for a constant subroutine | ||||
130 | # The check in Perl_ck_rvconst knows that inlinable | ||||
131 | # constants from cv_const_sv are read only. So we have to: | ||||
132 | 110 | 84µs | Internals::SvREADONLY($scalar, 1); # spent 84µs making 110 calls to Internals::SvREADONLY, avg 765ns/call | ||
133 | $symtab->{$name} = \$scalar; | ||||
134 | ++$flush_mro; | ||||
135 | } else { | ||||
136 | *$full_name = sub () { $scalar }; | ||||
137 | } | ||||
138 | } elsif (@_) { | ||||
139 | my @list = @_; | ||||
140 | *$full_name = sub () { @list }; | ||||
141 | } else { | ||||
142 | *$full_name = sub () { }; | ||||
143 | } | ||||
144 | } | ||||
145 | } | ||||
146 | # Flush the cache exactly once if we make any direct symbol table changes. | ||||
147 | 104 | 218µs | mro::method_changed_in($pkg) if _CAN_PCS && $flush_mro; # spent 218µs making 104 calls to mro::method_changed_in, avg 2µs/call | ||
148 | } | ||||
149 | |||||
150 | 1 | 23µs | 1; | ||
151 | |||||
152 | __END__ | ||||
# spent 349µs within constant::CORE:match which was called 113 times, avg 3µs/call:
# 113 times (349µs+0s) by constant::import at line 72, avg 3µs/call | |||||
sub constant::CORE:qr; # opcode | |||||
# spent 194µs within constant::CORE:regcomp which was called 116 times, avg 2µs/call:
# 113 times (148µs+0s) by constant::import at line 72, avg 1µs/call
# once (26µs+0s) by Time::Local::BEGIN@27 at line 21
# once (10µs+0s) by Time::Local::BEGIN@27 at line 22
# once (9µs+0s) by Time::Local::BEGIN@27 at line 23 |