← Index
NYTProf Performance Profile   « block view • line view • sub view »
For conv.pl
  Run on Sun Nov 14 22:06:10 2010
Reported on Sun Nov 14 22:07:07 2010

Filename/usr/share/perl/5.10/warnings/register.pm
StatementsExecuted 198 statements in 538µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
333473µs523µswarnings::register::::importwarnings::register::import
62150µs50µ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
311µsour $VERSION = '1.01';
4
511µsrequire warnings;
6
7sub mkMask
8
# spent 50µs within warnings::register::mkMask which was called 6 times, avg 8µs/call: # 3 times (25µs+0s) by warnings::register::import at line 27, avg 8µs/call # 3 times (25µs+0s) by warnings::register::import at line 21, avg 8µs/call
{
92466µs my ($bit) = @_;
10 my $mask = "";
11
12 vec($mask, $bit, 1) = 1;
13 return $mask;
14}
15
16sub import
17
# spent 523µs (473+50) within warnings::register::import which was called 3 times, avg 174µs/call: # once (167µs+16µs) by Tie::Hash::BEGIN@6 at line 6 of Tie/Hash.pm # once (155µs+17µs) by vars::BEGIN@7 at line 7 of vars.pm # once (151µs+17µs) by constant::BEGIN@4 at line 4 of constant.pm
{
18948µs shift;
19 my $package = (caller(0))[0];
201890µs if (! defined $warnings::Bits{$package}) {
21325µs $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 25µs making 3 calls to warnings::register::mkMask, avg 8µ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) {
25144328µs vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
26 }
27325µs $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 25µs making 3 calls to warnings::register::mkMask, avg 8µs/call
28 vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
29 }
30}
31
3214µs1;