Profile of warnings/register.pm

← Index
NYTProf Performance Profile «line view»
For t/bug-md-11.t
Run on Fri Mar 8 13:27:24 2024
Reported on Fri Mar 8 13:30:23 2024

Filename | /home/micha/.plenv/versions/5.38.2/lib/perl5/5.38.2/warnings/register.pm
Statements | Executed 27 statements in 25µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
5 | 5 | 5 | 17µs | 78µs | warnings::register::::importwarnings::register::import
0 | 0 | 0 | 0s | 0s | warnings::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
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package warnings::register 1.05;
2 |  |  |  |  |
3 | 1 | 400ns |  |  | require warnings;
4 |  |  |  |  |
5 |  |  |  |  | # left here as cruft in case other users were using this undocumented routine
6 |  |  |  |  | # -- rjbs, 2010-09-08
7 |  |  |  |  | sub mkMask
8 |  |  |  |  | {
9 |  |  |  |  | my ($bit) = @_;
10 |  |  |  |  | my $mask = "";
11 |  |  |  |  |
12 |  |  |  |  | vec($mask, $bit, 1) = 1;
13 |  |  |  |  | return $mask;
14 |  |  |  |  | }
15 |  |  |  |  |
16 |  |  |  |  | sub import
17 |  |  |  |  | # spent 78µs (17+61) within warnings::register::import which was called 5 times, avg 16µs/call: # once (4µs+16µs) by Tie::Hash::BEGIN@191 at line 191 of Tie/Hash.pm # once (4µs+12µs) by constant::BEGIN@4 at line 4 of constant.pm # once (3µs+12µs) by vars::BEGIN@7 at line 7 of vars.pm # once (3µs+11µs) by overload::BEGIN@143 at line 143 of overload.pm # once (3µs+10µs) by File::Find::BEGIN@5 at line 5 of File/Find.pm {
18 | 5 | 700ns |  |  | shift;
19 | 5 | 1µs |  |  | my @categories = @_;
20 |  |  |  |  |
21 | 5 | 3µs |  |  | my $package = caller;
22 | 5 | 4µs | 5 | 61µs | warnings::register_categories($package); # spent 61µs making 5 calls to warnings::register_categories, avg 12µs/call
23 |  |  |  |  |
24 | 5 | 13µs |  |  | warnings::register_categories($package . "::$_") for @categories;
25 |  |  |  |  | }
26 | 1 | 2µs |  |  | 1;
27 |  |  |  |  | __END__