← Index
Performance Profile   « block view • line view • sub view »
For ./awstats.pl
  Run on Wed Feb 11 19:11:27 2009
Reported on Thu Feb 12 02:07:43 2009

File/usr/share/perl/5.8/warnings/register.pm
Statements Executed134
Total Time0.001316 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
2220.000370.00046warnings::register::import
4219.7e-59.7e-5warnings::register::mkMask

LineStmts.Exclusive
Time
Avg.Code
1package warnings::register;
2
312.0e-62.0e-6our $VERSION = '1.01';
4
510.000870.00087require warnings;
6
7sub mkMask
8
# spent 97µs within warnings::register::mkMask which was called 4 times, avg 24µs/call: # 2 times (64µs+0) by warnings::register::import at line 27, avg 32µs/call # 2 times (33µs+0) by warnings::register::import at line 21, avg 16µs/call
{
9163.6e-52.3e-6 my ($bit) = @_;
10 my $mask = "";
11
12 vec($mask, $bit, 1) = 1;
13 return $mask;
14}
15
16sub import
17
# spent 463µs (366+97) within warnings::register::import which was called 2 times, avg 232µs/call: # once (178µs+69µs) at line 7 of /usr/share/perl/5.8/vars.pm # once (188µs+28µs) at line 7 of /usr/lib/perl/5.8/Socket.pm
{
181150.000403.5e-6 shift;
19 my $package = (caller(0))[0];
20 if (! defined $warnings::Bits{$package}) {
21 $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 33µs making 2 calls to warnings::register::mkMask, avg 16µs/call
22 vec($warnings::Bits{'all'}, $warnings::LAST_BIT, 1) = 1;
23 $warnings::Offsets{$package} = $warnings::LAST_BIT ++;
24 foreach my $k (keys %warnings::Bits) {
25 vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
26 }
27 $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 64µs making 2 calls to warnings::register::mkMask, avg 32µs/call
28 vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
29 }
30}
31
3214.0e-64.0e-61;