← Index
NYTProf Performance Profile   « line view »
For index.cgi
  Run on Sat May 9 17:18:47 2020
Reported on Sat May 9 17:19:07 2020

Filename/usr/share/perl/5.18/warnings/register.pm
StatementsExecuted 18 statements in 40µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
33332µs318µ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
31800nsour $VERSION = '1.02';
4
51400nsrequire warnings;
6
7# left here as cruft in case other users were using this undocumented routine
8# -- rjbs, 2010-09-08
9sub mkMask
10{
11 my ($bit) = @_;
12 my $mask = "";
13
14 vec($mask, $bit, 1) = 1;
15 return $mask;
16}
17
18sub import
19
# spent 318µs (32+286) within warnings::register::import which was called 3 times, avg 106µs/call: # once (12µs+96µs) by vars::BEGIN@7 at line 7 of vars.pm # once (11µs+95µs) by overload::BEGIN@144 at line 144 of overload.pm # once (9µs+95µs) by constant::BEGIN@4 at line 4 of constant.pm
{
2031µs shift;
2133µs my @categories = @_;
22
2339µs my $package = (caller(0))[0];
2437µs3286µs warnings::register_categories($package);
# spent 286µs making 3 calls to warnings::register_categories, avg 95µs/call
25
26315µs warnings::register_categories($package . "::$_") for @categories;
27}
28
2913µs1;