← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mongo_pain.pl
  Run on Fri Mar 25 17:00:29 2011
Reported on Fri Mar 25 17:07:09 2011

Filename/usr/share/perl/5.10/warnings/register.pm
StatementsExecuted 265 statements in 302µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
444252µs288µswarnings::register::::importwarnings::register::import
82136µs36µ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
31800nsour $VERSION = '1.01';
4
51400nsrequire warnings;
6
7sub mkMask
8
# spent 36µs within warnings::register::mkMask which was called 8 times, avg 5µs/call: # 4 times (21µs+0s) by warnings::register::import at line 21, avg 5µs/call # 4 times (15µs+0s) by warnings::register::import at line 27, avg 4µs/call
{
985µs my ($bit) = @_;
1084µs my $mask = "";
11
12811µs vec($mask, $bit, 1) = 1;
13834µs return $mask;
14}
15
16sub import
17
# spent 288µs (252+36) within warnings::register::import which was called 4 times, avg 72µs/call: # once (66µs+9µs) by constant::BEGIN@4 at line 4 of constant.pm # once (63µs+10µs) by overload::BEGIN@139 at line 139 of overload.pm # once (62µs+8µs) by Tie::Hash::BEGIN@6 at line 6 of Tie/Hash.pm # once (60µs+9µs) by vars::BEGIN@7 at line 7 of vars.pm
{
1842µs shift;
19414µs my $package = (caller(0))[0];
20420µs if (! defined $warnings::Bits{$package}) {
21410µs421µs $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 21µs making 4 calls to warnings::register::mkMask, avg 5µs/call
2245µs vec($warnings::Bits{'all'}, $warnings::LAST_BIT, 1) = 1;
2343µs $warnings::Offsets{$package} = $warnings::LAST_BIT ++;
24450µs foreach my $k (keys %warnings::Bits) {
25194121µs vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
26 }
27410µs415µs $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 15µs making 4 calls to warnings::register::mkMask, avg 4µs/call
2848µs vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
29 }
30}
31
3214µs1;