Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Moo/sification.pm |
Statements | Executed 17 statements in 357µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 36µs | 40µs | BEGIN@2 | Moo::sification::
1 | 1 | 1 | 11µs | 54µs | BEGIN@3 | Moo::sification::
1 | 1 | 1 | 6µs | 17µs | BEGIN@4 | Moo::sification::
1 | 1 | 1 | 6µs | 40µs | BEGIN@6 | Moo::sification::
1 | 1 | 1 | 6µs | 22µs | BEGIN@8 | Moo::sification::
2 | 2 | 2 | 6µs | 6µs | import | Moo::sification::
1 | 1 | 1 | 2µs | 2µ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 | 37µs | 2 | 44µs | # spent 40µs (36+4) within Moo::sification::BEGIN@2 which was called:
# once (36µs+4µs) by OpenAPI::Modern::BEGIN@11 at line 2 # spent 40µs making 1 call to Moo::sification::BEGIN@2
# spent 4µs making 1 call to strict::import |
3 | 2 | 27µs | 2 | 97µs | # spent 54µs (11+43) within Moo::sification::BEGIN@3 which was called:
# once (11µs+43µs) by OpenAPI::Modern::BEGIN@11 at line 3 # spent 54µs making 1 call to Moo::sification::BEGIN@3
# spent 43µs making 1 call to warnings::import |
4 | 2 | 20µs | 2 | 28µs | # spent 17µs (6+11) within Moo::sification::BEGIN@4 which was called:
# once (6µs+11µs) by OpenAPI::Modern::BEGIN@11 at line 4 # spent 17µs making 1 call to Moo::sification::BEGIN@4
# spent 11µs making 1 call to warnings::unimport |
5 | |||||
6 | 2 | 40µs | 2 | 74µs | # spent 40µs (6+34) within Moo::sification::BEGIN@6 which was called:
# once (6µs+34µs) by OpenAPI::Modern::BEGIN@11 at line 6 # spent 40µs making 1 call to Moo::sification::BEGIN@6
# spent 34µs making 1 call to Exporter::import |
7 | 1 | 28µs | 1 | 2µs | # spent 2µs within Moo::sification::BEGIN@7 which was called:
# once (2µs+0s) by OpenAPI::Modern::BEGIN@11 at line 7 # spent 2µs making 1 call to Moo::sification::BEGIN@7 |
8 | 2 | 190µs | 2 | 38µs | # spent 22µs (6+16) within Moo::sification::BEGIN@8 which was called:
# once (6µs+16µs) by OpenAPI::Modern::BEGIN@11 at line 8 # spent 22µs making 1 call to Moo::sification::BEGIN@8
# spent 16µ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 6µs within Moo::sification::import which was called 2 times, avg 3µs/call:
# once (3µs+0s) by MooX::TypeTiny::import at line 34 of Moo/Role.pm
# once (3µs+0s) by OpenAPI::Modern::BEGIN@11 at line 33 of Moo.pm | ||||
24 | return | ||||
25 | 2 | 6µs | if our $setup_done; | ||
26 | 1 | 0s | 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 | 4µs | $setup_done = 1; | ||
33 | } | ||||
34 | |||||
35 | 1 | 3µs | 1; |