← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mentat.storage.mongo.pl
  Run on Tue Jun 24 09:58:41 2014
Reported on Tue Jun 24 09:59:14 2014

Filename/usr/share/perl/5.14/warnings/register.pm
StatementsExecuted 38 statements in 120µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
777102µs939µswarnings::register::::importwarnings::register::import
0000s0swarnings::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.02';
4
51800nsrequire warnings;
6
7# left here as cruft in case other users were using this undocumented routine
8# -- rjbs, 2010-09-08
9sub mkMask
10{
11 my ($bit) = @_;
12 my $mask = "";
13
14 vec($mask, $bit, 1) = 1;
15 return $mask;
16}
17
18sub import
19
# spent 939µs (102+837) within warnings::register::import which was called 7 times, avg 134µs/call: # once (18µs+150µs) by overload::BEGIN@147 at line 147 of overload.pm # once (18µs+149µs) by File::Find::BEGIN@5 at line 5 of File/Find.pm # once (20µs+137µs) by vars::BEGIN@7 at line 7 of vars.pm # once (16µs+141µs) by Tie::Hash::BEGIN@6 at line 6 of Tie/Hash.pm # once (15µs+128µs) by constant::BEGIN@4 at line 4 of constant.pm # once (9µs+71µs) by Socket::BEGIN@668 at line 668 of Socket.pm # once (7µs+61µs) by Sys::Syslog::BEGIN@4 at line 4 of Sys/Syslog.pm
{
2035112µs shift;
21 my @categories = @_;
22
23 my $package = (caller(0))[0];
247837µs warnings::register_categories($package);
# spent 837µs making 7 calls to warnings::register_categories, avg 120µs/call
25
26 warnings::register_categories($package . "::$_") for @categories;
27}
28
2916µs1;