← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Fri Aug 4 10:15:59 2017
Reported on Fri Aug 4 10:16:18 2017

Filename/usr/libdata/perl5/warnings/register.pm
StatementsExecuted 13 statements in 43µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22232µs406µ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
31900nsour $VERSION = '1.04';
41900nsrequire 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 406µs (32+374) within warnings::register::import which was called 2 times, avg 203µs/call: # once (19µs+202µs) by vars::BEGIN@7 at line 7 of vars.pm # once (12µs+173µs) by constant::BEGIN@4 at line 4 of constant.pm
{
1921µs shift;
2022µs my @categories = @_;
21
22210µs my $package = (caller(0))[0];
23212µs2374µs warnings::register_categories($package);
# spent 374µs making 2 calls to warnings::register_categories, avg 187µs/call
24
25212µs warnings::register_categories($package . "::$_") for @categories;
26}
2714µs1;
28__END__