← Index
NYTProf Performance Profile   « line view »
For /usr/local/bin/sa-learn
  Run on Sun Nov 5 03:09:29 2017
Reported on Mon Nov 6 13:20:44 2017

Filename/usr/local/lib/perl5/5.24/warnings/register.pm
StatementsExecuted 43 statements in 296µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
888263µs3.84mswarnings::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
312µsour $VERSION = '1.04';
412µsrequire 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 3.84ms (263µs+3.57) within warnings::register::import which was called 8 times, avg 480µs/call: # once (35µs+542µs) by overload::BEGIN@144 at line 144 of overload.pm # once (35µs+487µs) by Socket::BEGIN@698 at line 698 of Socket.pm # once (32µs+458µs) by version::BEGIN@6 at line 6 of version.pm # once (34µs+441µs) by Sys::Syslog::BEGIN@4 at line 4 of Sys/Syslog.pm # once (33µs+437µs) by IO::Select::BEGIN@10 at line 10 of IO/Select.pm # once (34µs+429µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (32µs+398µs) by vars::BEGIN@7 at line 7 of vars.pm # once (28µs+383µs) by constant::BEGIN@4 at line 4 of constant.pm
{
19814µs shift;
20824µs my @categories = @_;
21
22887µs my $package = (caller(0))[0];
23860µs83.57ms warnings::register_categories($package);
# spent 3.57ms making 8 calls to warnings::register_categories, avg 447µs/call
24
25899µs warnings::register_categories($package . "::$_") for @categories;
26}
2718µs1;
28__END__