← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 03:38:15 2020
Reported on Wed Feb 12 04:56:35 2020

Filename/usr/share/perl/5.28/warnings/register.pm
StatementsExecuted 23 statements in 43µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
44430µs133µ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
31400nsour $VERSION = '1.04';
41500nsrequire 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 133µs (30+103) within warnings::register::import which was called 4 times, avg 33µs/call: # once (10µs+29µs) by vars::BEGIN@7 at line 7 of vars.pm # once (6µs+28µs) by constant::BEGIN@4 at line 4 of constant.pm # once (8µs+26µs) by overload::BEGIN@142 at line 142 of overload.pm # once (5µs+21µs) by flock::BEGIN@132 at line 132 of Path/Tiny.pm
{
1941µs shift;
2042µs my @categories = @_;
21
22412µs my $package = (caller(0))[0];
2349µs4103µs warnings::register_categories($package);
# spent 103µs making 4 calls to warnings::register_categories, avg 26µs/call
24
25415µs warnings::register_categories($package . "::$_") for @categories;
26}
2713µs1;
28__END__