← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/getfix
  Run on Thu May 20 15:30:03 2010
Reported on Thu May 20 16:25:25 2010

File/opt/wise/lib/perl5/5.10.0/warnings/register.pm
Statements Executed333
Total Time0.000629000000000003 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
5550.000550.00067warnings::register::import
10210.000110.00011warnings::register::mkMask

LineStmts.Exclusive
Time
Avg.Code
1package warnings::register;
2
311.0e-61.0e-6our $VERSION = '1.01';
4
5=pod
6
7=head1 NAME
8
9warnings::register - warnings import function
10
11=head1 SYNOPSIS
12
13 use warnings::register;
14
15=head1 DESCRIPTION
16
17Creates a warnings category with the same name as the current package.
18
19See L<warnings> and L<perllexwarn> for more information on this module's
20usage.
21
22=cut
23
24100require warnings;
25
26sub mkMask
27
# spent 111µs within warnings::register::mkMask which was called 10 times, avg 11µs/call: # 5 times (57µs+0) by warnings::register::import at line 46, avg 11µs/call # 5 times (54µs+0) by warnings::register::import at line 40, avg 11µs/call
{
28405.8e-51.4e-6 my ($bit) = @_;
29 my $mask = "";
30
31 vec($mask, $bit, 1) = 1;
32 return $mask;
33}
34
35sub import
36
# spent 666µs (555+111) within warnings::register::import which was called 5 times, avg 133µs/call: # once (153µs+23µs) by overload::BEGIN at line 138 of /opt/wise/lib/perl5/5.10.0/overload.pm # once (117µs+27µs) at line 5 of /opt/wise/lib/perl5/5.10.0/File/Find.pm # once (104µs+16µs) by Tie::Hash::BEGIN at line 189 of /opt/wise/lib/perl5/5.10.0/Tie/Hash.pm # once (87µs+30µs) at line 7 of /opt/wise/lib/perl5/5.10.0/vars.pm # once (94µs+15µs) at line 4 of /opt/wise/lib/perl5/5.10.0/constant.pm
{
372900.000561.9e-6 shift;
38 my $package = (caller(0))[0];
39 if (! defined $warnings::Bits{$package}) {
40 $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 54µs making 5 calls to warnings::register::mkMask, avg 11µs/call
41 vec($warnings::Bits{'all'}, $warnings::LAST_BIT, 1) = 1;
42 $warnings::Offsets{$package} = $warnings::LAST_BIT ++;
43 foreach my $k (keys %warnings::Bits) {
44 vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
45 }
46 $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 57µs making 5 calls to warnings::register::mkMask, avg 11µs/call
47 vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
48 }
49}
50
5116.0e-66.0e-61;