← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:08 2016

Filename/usr/share/perl/5.18/warnings/register.pm
StatementsExecuted 43 statements in 72µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
88862µs565µ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
31400nsour $VERSION = '1.02';
4
51200nsrequire warnings;
6
7# left here as cruft in case other users were using this undocumented routine
8# -- rjbs, 2010-09-08
9sub mkMask
10{
11 my ($bit) = @_;
12 my $mask = "";
13
14 vec($mask, $bit, 1) = 1;
15 return $mask;
16}
17
18sub import
19
# spent 565µs (62+503) within warnings::register::import which was called 8 times, avg 71µs/call: # once (8µs+82µs) by File::stat::BEGIN@6 at line 6 of File/stat.pm # once (9µs+69µs) by Socket::BEGIN@11 at line 11 of Socket.pm # once (7µs+68µs) by Tie::Hash::BEGIN@6 at line 6 of Tie/Hash.pm # once (7µs+60µs) by overload::BEGIN@144 at line 144 of overload.pm # once (8µs+60µs) by Class::Struct::BEGIN@8 at line 8 of Class/Struct.pm # once (8µs+58µs) by constant::BEGIN@4 at line 4 of constant.pm # once (5µs+55µs) by vars::BEGIN@7 at line 7 of vars.pm # once (10µs+50µs) by File::Find::BEGIN@5 at line 5 of File/Find.pm
{
2082µs shift;
2185µs my @categories = @_;
22
23824µs my $package = (caller(0))[0];
24812µs8503µs warnings::register_categories($package);
# spent 503µs making 8 calls to warnings::register_categories, avg 63µs/call
25
26826µs warnings::register_categories($package . "::$_") for @categories;
27}
28
2912µs1;