← Index
NYTProf Performance Profile   « line view »
For scripts/bench.pl
  Run on Mon Oct 22 16:48:56 2018
Reported on Mon Oct 22 16:49:10 2018

Filename/usr/share/perl/5.26/warnings/register.pm
StatementsExecuted 13 statements in 37µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22224µs263µ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 263µs (24+239) within warnings::register::import which was called 2 times, avg 131µs/call: # once (17µs+160µs) by vars::BEGIN@7 at line 7 of vars.pm # once (7µs+79µs) by constant::BEGIN@4 at line 4 of constant.pm
{
192800ns shift;
2022µs my @categories = @_;
21
2228µs my $package = (caller(0))[0];
2324µs2239µs warnings::register_categories($package);
# spent 239µs making 2 calls to warnings::register_categories, avg 120µs/call
24
25213µs warnings::register_categories($package . "::$_") for @categories;
26}
2718µs1;
28__END__