← Index
NYTProf Performance Profile   « line view »
For /home/ss5/perl5/perlbrew/perls/perl-5.22.0/bin/benchmarkanything-storage
  Run on Mon Jan 29 16:55:34 2018
Reported on Mon Jan 29 16:57:06 2018

Filename/home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0/warnings/register.pm
StatementsExecuted 33 statements in 51µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
66643µs444µ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
31200nsour $VERSION = '1.04';
41200nsrequire warnings;
5
6# left here as cruft in case other users were using this undocumented routine
7# -- rjbs, 2010-09-08
8sub mkMask
9{
10 my ($bit) = @_;
11 my $mask = "";
12
13 vec($mask, $bit, 1) = 1;
14 return $mask;
15}
16
17sub import
18
# spent 444µs (43+401) within warnings::register::import which was called 6 times, avg 74µs/call: # once (10µs+77µs) by overload::BEGIN@144 at line 144 of overload.pm # once (7µs+71µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (7µs+65µs) by IO::Select::BEGIN@10 at line 10 of IO/Select.pm # once (7µs+64µs) by constant::BEGIN@4 at line 4 of constant.pm # once (6µs+63µs) by vars::BEGIN@7 at line 7 of vars.pm # once (6µs+61µs) by Socket::BEGIN@688 at line 688 of Socket.pm
{
1962µs shift;
2063µs my @categories = @_;
21
22614µs my $package = (caller(0))[0];
23611µs6401µs warnings::register_categories($package);
# spent 401µs making 6 calls to warnings::register_categories, avg 67µs/call
24
25618µs warnings::register_categories($package . "::$_") for @categories;
26}
2712µs1;
28__END__