← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 20:36:06 2020
Reported on Wed Feb 12 21:42:25 2020

Filename/usr/share/perl/5.28/warnings/register.pm
StatementsExecuted 23 statements in 40µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
44431µs128µ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
31300nsour $VERSION = '1.04';
41200nsrequire 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 128µs (31+97) within warnings::register::import which was called 4 times, avg 32µs/call: # once (9µs+26µs) by vars::BEGIN@7 at line 7 of vars.pm # once (10µs+24µs) by overload::BEGIN@142 at line 142 of overload.pm # once (6µs+25µs) by constant::BEGIN@4 at line 4 of constant.pm # once (6µs+21µs) by flock::BEGIN@132 at line 132 of Path/Tiny.pm
{
1941µs shift;
2042µs my @categories = @_;
21
22410µs my $package = (caller(0))[0];
2349µs497µs warnings::register_categories($package);
# spent 97µs making 4 calls to warnings::register_categories, avg 24µs/call
24
25415µs warnings::register_categories($package . "::$_") for @categories;
26}
2713µs1;
28__END__