← Index
NYTProf Performance Profile   « line view »
For Makefile.PL
  Run on Sun Mar 1 16:04:44 2015
Reported on Sun Mar 1 16:09:02 2015

FilenameC:/tmp64ng/perl/lib/warnings/register.pm
StatementsExecuted 28 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
5550s0swarnings::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
310sour $VERSION = '1.03';
4
5=pod
6
7=head1 NAME
8
9warnings::register - warnings import function
10
11=head1 SYNOPSIS
12
13 use warnings::register;
14
15=head1 DESCRIPTION
16
17Creates a warnings category with the same name as the current package.
18
19See L<warnings> for more information on this module's usage.
20
21=cut
22
2310srequire warnings;
24
25# left here as cruft in case other users were using this undocumented routine
26# -- rjbs, 2010-09-08
27sub mkMask
28{
29 my ($bit) = @_;
30 my $mask = "";
31
32 vec($mask, $bit, 1) = 1;
33 return $mask;
34}
35
36sub import
37
# spent 0s within warnings::register::import which was called 5 times, avg 0s/call: # once (0s+0s) by vars::BEGIN@7 at line 7 of vars.pm # once (0s+0s) by version::BEGIN@6 at line 6 of version.pm # once (0s+0s) by File::Find::BEGIN@5 at line 5 of File/Find.pm # once (0s+0s) by overload::BEGIN@144 at line 144 of overload.pm # once (0s+0s) by constant::BEGIN@4 at line 4 of constant.pm
{
3850s shift;
3950s my @categories = @_;
40
4150s my $package = (caller(0))[0];
4250s50s warnings::register_categories($package);
# spent 0s making 5 calls to warnings::register_categories, avg 0s/call
43
4450s warnings::register_categories($package . "::$_") for @categories;
45}
46
4710s1;