← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/framedepth
  Run on Fri May 28 15:23:26 2010
Reported on Fri May 28 15:26:27 2010

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

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
5550.000570.00068warnings::register::import
10210.000120.00012warnings::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 117µs within warnings::register::mkMask which was called 10 times, avg 12µs/call: # 5 times (60µs+0) by warnings::register::import at line 40, avg 12µs/call # 5 times (57µs+0) by warnings::register::import at line 46, avg 11µs/call
{
28102.8e-52.8e-6 my ($bit) = @_;
29101.0e-51.0e-6 my $mask = "";
30
31102.2e-52.2e-6 vec($mask, $bit, 1) = 1;
32102.0e-52.0e-6 return $mask;
33}
34
35sub import
36
# spent 684µs (567+117) within warnings::register::import which was called 5 times, avg 137µs/call: # once (124µs+29µs) at line 179 of /opt/wise/lib/perl5/5.10.0/x86_64-linux-thread-multi/Socket.pm # once (111µs+28µs) at line 4 of /opt/wise/lib/perl5/5.10.0/constant.pm # once (118µs+20µs) by overload::BEGIN at line 138 of /opt/wise/lib/perl5/5.10.0/overload.pm # once (117µs+19µs) by Tie::Hash::BEGIN at line 189 of /opt/wise/lib/perl5/5.10.0/Tie/Hash.pm # once (97µs+21µs) at line 7 of /opt/wise/lib/perl5/5.10.0/vars.pm
{
3755.0e-61.0e-6 shift;
3852.8e-55.6e-6 my $package = (caller(0))[0];
3951.9e-53.8e-6 if (! defined $warnings::Bits{$package}) {
4053.6e-57.2e-6 $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 60µs making 5 calls to warnings::register::mkMask, avg 12µs/call
4151.0e-52.0e-6 vec($warnings::Bits{'all'}, $warnings::LAST_BIT, 1) = 1;
4257.0e-61.4e-6 $warnings::Offsets{$package} = $warnings::LAST_BIT ++;
4356.5e-51.3e-5 foreach my $k (keys %warnings::Bits) {
442450.000361.5e-6 vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
45 }
4652.8e-55.6e-6 $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 57µs making 5 calls to warnings::register::mkMask, avg 11µs/call
4751.6e-53.2e-6 vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
48 }
49}
50
5115.0e-65.0e-61;