← Index
NYTProf Performance Profile   « line view »
For ./v1.pl
  Run on Wed Sep 18 20:26:04 2019
Reported on Wed Sep 18 20:29:11 2019

Filename/usr/share/perl/5.26/warnings/register.pm
StatementsExecuted 8 statements in 16µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11110µs114µ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.04';
41600nsrequire 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 114µs (10+105) within warnings::register::import which was called: # once (10µs+105µs) by constant::BEGIN@4 at line 4 of constant.pm
{
191300ns shift;
201600ns my @categories = @_;
21
2213µs my $package = (caller(0))[0];
2312µs1105µs warnings::register_categories($package);
# spent 105µs making 1 call to warnings::register_categories
24
2513µs warnings::register_categories($package . "::$_") for @categories;
26}
2715µs1;
28__END__