← Index
NYTProf Performance Profile   « line view »
For ../prof.pl
  Run on Wed Dec 14 15:57:08 2022
Reported on Wed Dec 14 16:00:30 2022

Filename/Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/warnings/register.pm
StatementsExecuted 38 statements in 201µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
777103µs363µ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';
410srequire 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 363µs (103+260) within warnings::register::import which was called 7 times, avg 52µs/call: # once (11µs+88µs) by overload::BEGIN@145 at line 145 of overload.pm # once (37µs+52µs) by Socket::BEGIN@698 at line 698 of Socket.pm # once (12µs+33µs) by version::BEGIN@6 at line 6 of version.pm # once (18µs+20µs) by flock::BEGIN@131 at line 131 of Path/Tiny.pm # once (9µs+27µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (10µs+24µs) by vars::BEGIN@7 at line 7 of vars.pm # once (6µs+16µs) by constant::BEGIN@4 at line 4 of constant.pm
{
1975µs shift;
2072µs my @categories = @_;
21
22751µs my $package = (caller(0))[0];
23715µs7260µs warnings::register_categories($package);
# spent 260µs making 7 calls to warnings::register_categories, avg 37µs/call
24
257122µs warnings::register_categories($package . "::$_") for @categories;
26}
2715µs1;
28__END__