← Index
NYTProf Performance Profile   « line view »
For /usr/local/bin/sa-learn
  Run on Sun Nov 5 02:36:06 2017
Reported on Sun Nov 5 02:56:17 2017

Filename/usr/local/lib/perl5/5.24/warnings/register.pm
StatementsExecuted 43 statements in 322µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
888271µs5.48mswarnings::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.48ms (271µs+5.21) within warnings::register::import which was called 8 times, avg 685µs/call: # once (32µs+736µs) by Sys::Syslog::BEGIN@4 at line 4 of Sys/Syslog.pm # once (40µs+702µs) by Socket::BEGIN@698 at line 698 of Socket.pm # once (32µs+699µs) by IO::Select::BEGIN@10 at line 10 of IO/Select.pm # once (42µs+652µs) by vars::BEGIN@7 at line 7 of vars.pm # once (32µs+627µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (30µs+625µs) by version::BEGIN@6 at line 6 of version.pm # once (30µs+587µs) by overload::BEGIN@144 at line 144 of overload.pm # once (33µs+578µs) by constant::BEGIN@4 at line 4 of constant.pm
{
19813µs shift;
20835µs my @categories = @_;
21
22888µs my $package = (caller(0))[0];
23865µs85.21ms warnings::register_categories($package);
# spent 5.21ms making 8 calls to warnings::register_categories, avg 651µs/call
24
258103µs warnings::register_categories($package . "::$_") for @categories;
26}
27114µs1;
28__END__