← Index
NYTProf Performance Profile   « line view »
For -e
  Run on Thu Jun 30 16:34:56 2016
Reported on Thu Jun 30 16:35:08 2016

Filename/home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/5.22.1/warnings/register.pm
StatementsExecuted 33 statements in 63µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
66657µs510µ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
31500nsour $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 510µs (57+453) within warnings::register::import which was called 6 times, avg 85µs/call: # once (13µs+84µs) by version::BEGIN@6 at line 6 of version.pm # once (10µs+81µs) by constant::BEGIN@4 at line 4 of constant.pm # once (8µs+81µs) by overload::BEGIN@144 at line 144 of overload.pm # once (10µs+70µs) by DateTime::BEGIN@7 at line 7 of DateTime.pm # once (8µs+70µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (8µs+67µs) by vars::BEGIN@7 at line 7 of vars.pm
{
1961µs shift;
2065µs my @categories = @_;
21
22618µs my $package = (caller(0))[0];
23611µs6452µs warnings::register_categories($package);
# spent 452µs making 6 calls to warnings::register_categories, avg 75µs/call
24
25624µs warnings::register_categories($package . "::$_") for @categories;
26}
2713µs1;
28__END__