← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:26:37 2011

Filename/usr/share/perl/5.14/warnings/register.pm
StatementsExecuted 18 statements in 81µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
33371µs806µ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
312µsour $VERSION = '1.02';
4
512µsrequire 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 806µs (71+735) within warnings::register::import which was called 3 times, avg 269µs/call: # once (25µs+250µs) by overload::BEGIN@147 at line 147 of overload.pm # once (23µs+246µs) by constant::BEGIN@4 at line 4 of constant.pm # once (24µs+239µs) by vars::BEGIN@7 at line 7 of vars.pm
{
201572µs shift;
21 my @categories = @_;
22
23 my $package = (caller(0))[0];
243734µs warnings::register_categories($package);
# spent 734µs making 3 calls to warnings::register_categories, avg 245µs/call
25
26 warnings::register_categories($package . "::$_") for @categories;
27}
28
2915µs1;