← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Fri Aug 4 10:12:01 2017
Reported on Fri Aug 4 10:12:17 2017

Filename/usr/libdata/perl5/warnings/register.pm
StatementsExecuted 13 statements in 41µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22234µs434µ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
311µsour $VERSION = '1.04';
41800nsrequire 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 434µs (34+399) within warnings::register::import which was called 2 times, avg 217µs/call: # once (21µs+207µs) by vars::BEGIN@7 at line 7 of vars.pm # once (14µs+192µ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];
2329µs2399µs warnings::register_categories($package);
# spent 399µs making 2 calls to warnings::register_categories, avg 200µs/call
24
25212µs warnings::register_categories($package . "::$_") for @categories;
26}
2714µs1;
28__END__