Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Moo/sification.pm |
Statements | Executed 17 statements in 265µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 22µs | 24µs | BEGIN@2 | Moo::sification::
2 | 2 | 2 | 13µs | 13µs | import | Moo::sification::
1 | 1 | 1 | 5µs | 31µs | BEGIN@6 | Moo::sification::
1 | 1 | 1 | 4µs | 27µs | BEGIN@3 | Moo::sification::
1 | 1 | 1 | 3µs | 13µs | BEGIN@4 | Moo::sification::
1 | 1 | 1 | 3µs | 15µs | BEGIN@8 | Moo::sification::
1 | 1 | 1 | 1µs | 1µs | BEGIN@7 | Moo::sification::
0 | 0 | 0 | 0s | 0s | DESTROY | Moo::HandleMoose::AuthorityHack::
0 | 0 | 0 | 0s | 0s | unimport | Moo::sification::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Moo::sification; | ||||
2 | 2 | 22µs | 2 | 26µs | # spent 24µs (22+2) within Moo::sification::BEGIN@2 which was called:
# once (22µs+2µs) by OpenAPI::Modern::BEGIN@11 at line 2 # spent 24µs making 1 call to Moo::sification::BEGIN@2
# spent 2µs making 1 call to strict::import |
3 | 2 | 30µs | 2 | 50µs | # spent 27µs (4+23) within Moo::sification::BEGIN@3 which was called:
# once (4µs+23µs) by OpenAPI::Modern::BEGIN@11 at line 3 # spent 27µs making 1 call to Moo::sification::BEGIN@3
# spent 23µs making 1 call to warnings::import |
4 | 2 | 14µs | 2 | 23µs | # spent 13µs (3+10) within Moo::sification::BEGIN@4 which was called:
# once (3µs+10µs) by OpenAPI::Modern::BEGIN@11 at line 4 # spent 13µs making 1 call to Moo::sification::BEGIN@4
# spent 10µs making 1 call to warnings::unimport |
5 | |||||
6 | 2 | 26µs | 2 | 57µs | # spent 31µs (5+26) within Moo::sification::BEGIN@6 which was called:
# once (5µs+26µs) by OpenAPI::Modern::BEGIN@11 at line 6 # spent 31µs making 1 call to Moo::sification::BEGIN@6
# spent 26µs making 1 call to Exporter::import |
7 | 1 | 22µs | 1 | 1µs | # spent 1µs within Moo::sification::BEGIN@7 which was called:
# once (1µs+0s) by OpenAPI::Modern::BEGIN@11 at line 7 # spent 1µs making 1 call to Moo::sification::BEGIN@7 |
8 | 2 | 129µs | 2 | 27µs | # spent 15µs (3+12) within Moo::sification::BEGIN@8 which was called:
# once (3µs+12µs) by OpenAPI::Modern::BEGIN@11 at line 8 # spent 15µs making 1 call to Moo::sification::BEGIN@8
# spent 12µs making 1 call to Exporter::import |
9 | |||||
10 | sub unimport { | ||||
11 | croak "Can't disable Moo::sification after inflation has been done" | ||||
12 | if $Moo::HandleMoose::SETUP_DONE; | ||||
13 | our $disabled = 1; | ||||
14 | } | ||||
15 | |||||
16 | sub Moo::HandleMoose::AuthorityHack::DESTROY { | ||||
17 | unless (our $disabled or _in_global_destruction) { | ||||
18 | require Moo::HandleMoose; | ||||
19 | Moo::HandleMoose->import; | ||||
20 | } | ||||
21 | } | ||||
22 | |||||
23 | # spent 13µs within Moo::sification::import which was called 2 times, avg 7µs/call:
# once (9µs+0s) by MooX::TypeTiny::import at line 34 of Moo/Role.pm
# once (4µs+0s) by OpenAPI::Modern::BEGIN@11 at line 33 of Moo.pm | ||||
24 | return | ||||
25 | 2 | 13µs | if our $setup_done; | ||
26 | 1 | 1µs | if ($INC{"Moose.pm"}) { | ||
27 | require Moo::HandleMoose; | ||||
28 | Moo::HandleMoose->import; | ||||
29 | } else { | ||||
30 | 1 | 2µs | $Moose::AUTHORITY = bless({}, 'Moo::HandleMoose::AuthorityHack'); | ||
31 | } | ||||
32 | 1 | 3µs | $setup_done = 1; | ||
33 | } | ||||
34 | |||||
35 | 1 | 3µs | 1; |