← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:45:08 2010
Reported on Wed Nov 17 22:10:20 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/5.10.1/warnings/register.pm
StatementsExecuted 198 statements in 1.27ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
3331.10ms1.23mswarnings::register::::importwarnings::register::import
621130µs130µswarnings::register::::mkMaskwarnings::register::mkMask
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package warnings::register;
2
313µsour $VERSION = '1.01';
4
5=pod
6
- -
2413µsrequire warnings;
25
26sub mkMask
27
# spent 130µs within warnings::register::mkMask which was called 6 times, avg 22µs/call: # 3 times (74µs+0s) by warnings::register::import at line 40, avg 25µs/call # 3 times (55µs+0s) by warnings::register::import at line 46, avg 18µs/call
{
2824184µs my ($bit) = @_;
29 my $mask = "";
30
31 vec($mask, $bit, 1) = 1;
32 return $mask;
33}
34
35sub import
36
# spent 1.23ms (1.10+130µs) within warnings::register::import which was called 3 times, avg 411µs/call: # once (407µs+45µs) by overload::BEGIN@139 at line 139 of overload.pm # once (352µs+43µs) by constant::BEGIN@4 at line 4 of constant.pm # once (343µs+41µs) by vars::BEGIN@7 at line 7 of vars.pm
{
379115µs shift;
38 my $package = (caller(0))[0];
3918233µs if (! defined $warnings::Bits{$package}) {
40374µs $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 74µs making 3 calls to warnings::register::mkMask, avg 25µ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) {
44144717µs vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
45 }
46355µs $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 55µs making 3 calls to warnings::register::mkMask, avg 18µs/call
47 vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
48 }
49}
50
51112µs1;