← Index
NYTProf Performance Profile   « line view »
For /usr/local/bin/sa-learn
  Run on Tue Nov 7 05:38:10 2017
Reported on Tue Nov 7 06:15:59 2017

Filename/usr/local/lib/perl5/5.24/warnings/register.pm
StatementsExecuted 43 statements in 329µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
888291µs5.55mswarnings::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 5.55ms (291µs+5.26) within warnings::register::import which was called 8 times, avg 694µs/call: # once (44µs+682µs) by vars::BEGIN@7 at line 7 of vars.pm # once (34µs+682µs) by Socket::BEGIN@698 at line 698 of Socket.pm # once (32µs+674µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (31µs+669µs) by overload::BEGIN@144 at line 144 of overload.pm # once (30µs+668µs) by version::BEGIN@6 at line 6 of version.pm # once (30µs+655µs) by Sys::Syslog::BEGIN@4 at line 4 of Sys/Syslog.pm # once (32µs+645µs) by IO::Select::BEGIN@10 at line 10 of IO/Select.pm # once (58µs+586µs) by constant::BEGIN@4 at line 4 of constant.pm
{
19818µs shift;
20827µs my @categories = @_;
21
22893µs my $package = (caller(0))[0];
23869µs85.26ms warnings::register_categories($package);
# spent 5.26ms making 8 calls to warnings::register_categories, avg 658µs/call
24
258110µs warnings::register_categories($package . "::$_") for @categories;
26}
2718µs1;
28__END__