← Index
NYTProf Performance Profile   « line view »
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:08 2016

Filename/usr/share/perl/5.18/warnings/register.pm
StatementsExecuted 33 statements in 63µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
66650µs487µ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
31600nsour $VERSION = '1.02';
4
51300nsrequire 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 487µs (50+437) within warnings::register::import which was called 6 times, avg 81µs/call: # once (10µs+85µs) by vars::BEGIN@7 at line 7 of vars.pm # once (11µs+82µs) by IO::Select::BEGIN@10 at line 10 of IO/Select.pm # once (8µs+79µs) by overload::BEGIN@144 at line 144 of overload.pm # once (7µs+65µs) by Tie::Hash::BEGIN@6 at line 6 of Tie/Hash.pm # once (7µs+64µs) by constant::BEGIN@4 at line 4 of constant.pm # once (7µs+61µs) by Socket::BEGIN@11 at line 11 of Socket.pm
{
2061µs shift;
2165µs my @categories = @_;
22
23615µs my $package = (caller(0))[0];
24611µs6437µs warnings::register_categories($package);
# spent 437µs making 6 calls to warnings::register_categories, avg 73µs/call
25
26627µs warnings::register_categories($package . "::$_") for @categories;
27}
28
2913µs1;