← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:12:14 2013

Filename/usr/share/perl/5.10/warnings/register.pm
StatementsExecuted 543 statements in 974µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
888824µs949µswarnings::register::::importwarnings::register::import
1621126µs126µ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
31700nsour $VERSION = '1.01';
4
51500nsrequire warnings;
6
7sub mkMask
8
# spent 126µs within warnings::register::mkMask which was called 16 times, avg 8µs/call: # 8 times (82µs+0s) by warnings::register::import at line 21, avg 10µs/call # 8 times (43µs+0s) by warnings::register::import at line 27, avg 5µs/call
{
91618µs my ($bit) = @_;
101614µs my $mask = "";
11
121640µs vec($mask, $bit, 1) = 1;
1316100µs return $mask;
14}
15
16sub import
17
# spent 949µs (824+126) within warnings::register::import which was called 8 times, avg 119µs/call: # once (165µs+24µs) by overload::BEGIN@139 at line 139 of overload.pm # once (132µs+23µs) by Socket::BEGIN@7 at line 7 of Socket.pm # once (127µs+22µs) by constant::BEGIN@4 at line 4 of constant.pm # once (88µs+13µs) by Cache::Memcached::BEGIN@22 at line 1 of (eval 9)[fields.pm:6] # once (83µs+12µs) by IO::Select::BEGIN@10 at line 10 of IO/Select.pm # once (83µs+11µs) by Tie::Hash::BEGIN@6 at line 6 of Tie/Hash.pm # once (76µs+11µs) by Hash::Util::BEGIN@7 at line 7 of Hash/Util.pm # once (70µs+9µs) by vars::BEGIN@7 at line 7 of vars.pm
{
1888µs shift;
19844µs my $package = (caller(0))[0];
20861µs if (! defined $warnings::Bits{$package}) {
21837µs882µs $warnings::Bits{$package} = mkMask($warnings::LAST_BIT);
# spent 82µs making 8 calls to warnings::register::mkMask, avg 10µs/call
22820µs vec($warnings::Bits{'all'}, $warnings::LAST_BIT, 1) = 1;
23819µs $warnings::Offsets{$package} = $warnings::LAST_BIT ++;
248141µs foreach my $k (keys %warnings::Bits) {
25404409µs vec($warnings::Bits{$k}, $warnings::LAST_BIT, 1) = 0;
26 }
27834µs843µs $warnings::DeadBits{$package} = mkMask($warnings::LAST_BIT);
# spent 43µs making 8 calls to warnings::register::mkMask, avg 5µs/call
28824µs vec($warnings::DeadBits{'all'}, $warnings::LAST_BIT++, 1) = 1;
29 }
30}
31
3214µs1;