Filename | /usr/share/perl/5.26/warnings/register.pm |
Statements | Executed 8 statements in 16µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 10µs | 114µs | import | warnings::register::
0 | 0 | 0 | 0s | 0s | mkMask | warnings::register::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package warnings::register; | ||||
2 | |||||
3 | 1 | 800ns | our $VERSION = '1.04'; | ||
4 | 1 | 600ns | require warnings; | ||
5 | |||||
6 | # left here as cruft in case other users were using this undocumented routine | ||||
7 | # -- rjbs, 2010-09-08 | ||||
8 | sub mkMask | ||||
9 | { | ||||
10 | my ($bit) = @_; | ||||
11 | my $mask = ""; | ||||
12 | |||||
13 | vec($mask, $bit, 1) = 1; | ||||
14 | return $mask; | ||||
15 | } | ||||
16 | |||||
17 | sub import | ||||
18 | # spent 114µs (10+105) within warnings::register::import which was called:
# once (10µs+105µs) by constant::BEGIN@4 at line 4 of constant.pm | ||||
19 | 1 | 300ns | shift; | ||
20 | 1 | 600ns | my @categories = @_; | ||
21 | |||||
22 | 1 | 3µs | my $package = (caller(0))[0]; | ||
23 | 1 | 2µs | 1 | 105µs | warnings::register_categories($package); # spent 105µs making 1 call to warnings::register_categories |
24 | |||||
25 | 1 | 3µs | warnings::register_categories($package . "::$_") for @categories; | ||
26 | } | ||||
27 | 1 | 5µs | 1; | ||
28 | __END__ |