| Filename | /usr/local/perls/perl-5.26.1/lib/5.26.1/warnings/register.pm |
| Statements | Executed 5 statements in 56µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 30µs | 213µs | warnings::register::import |
| 0 | 0 | 0 | 0s | 0s | warnings::register::mkMask |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package warnings::register; | ||||
| 2 | |||||
| 3 | our $VERSION = '1.04'; | ||||
| 4 | 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 213µs (30+183) within warnings::register::import which was called:
# once (30µs+183µs) by Tie::Handle::BEGIN@124 at line 124 of Tie/Handle.pm | ||||
| 19 | 1 | 1µs | shift; | ||
| 20 | 1 | 9µs | my @categories = @_; | ||
| 21 | |||||
| 22 | 1 | 8µs | my $package = (caller(0))[0]; | ||
| 23 | 1 | 19µs | 1 | 183µs | warnings::register_categories($package); # spent 183µs making 1 call to warnings::register_categories |
| 24 | |||||
| 25 | 1 | 19µs | warnings::register_categories($package . "::$_") for @categories; | ||
| 26 | } | ||||
| 27 | 1; | ||||
| 28 | __END__ |