← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/wdate
  Run on Fri Jun 4 15:13:22 2010
Reported on Fri Jun 4 15:14:22 2010

File/opt/wise/lib/perl5/5.10.0/warnings/register.pm
Statements Executed265
Total Time0.000508999999999999 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4440.000420.00053warnings::register::import
8210.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
2411.0e-61.0e-6require warnings;
25
26sub mkMask
27
# spent 110µs within warnings::register::mkMask which was called 8 times, avg 14µs/call: # 4 times (79µs+0) by warnings::register::import at line 40, avg 20µs/call # 4 times (31µs+0) by warnings::register::import at line 46, avg 8µs/call
{
28326.4e-52.0e-6 my ($bit) = @_;
29 my $mask = "";
30
31 vec($mask, $bit, 1) = 1;
32 return $mask;
33}
34
35sub import
36
# spent 532µs (422+110) within warnings::register::import which was called 4 times, avg 133µs/call: # once (131µs+50µs) by overload::BEGIN at line 138 of /opt/wise/lib/perl5/5.10.0/overload.pm # once (102µs+18µs) by Tie::Hash::BEGIN at line 189 of /opt/wise/lib/perl5/5.10.0/Tie/Hash.pm # once (98µs+22µs) at line 7 of /opt/wise/lib/perl5/5.10.0/vars.pm # once (91µs+20µs) at line 4 of /opt/wise/lib/perl5/5.10.0/constant.pm
{
37125.4e-54.5e-6 shift;
38 my $package = (caller(0))[0];
39240.000156.2e-6 if (! defined $warnings::Bits{$package}) {
40 $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 79µs making 4 calls to warnings::register::mkMask, avg 20µ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) {
441940.000231.2e-6 vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
45 }
46 $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 31µs making 4 calls to warnings::register::mkMask, avg 8µs/call
47 vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
48 }
49}
50
5116.0e-66.0e-61;