Filename | /usr/lib/perl/5.18/mro.pm |
Statements | Executed 8 statements in 410µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
6 | 3 | 2 | 26µs | 26µs | get_linear_isa (xsub) | mro::
1 | 1 | 1 | 14µs | 20µs | BEGIN@11 | mro::
1 | 1 | 1 | 14µs | 31µs | BEGIN@10 | mro::
3 | 1 | 1 | 6µs | 6µs | method_changed_in (xsub) | mro::
0 | 0 | 0 | 0s | 0s | method | maybe::next::
0 | 0 | 0 | 0s | 0s | import | mro::
0 | 0 | 0 | 0s | 0s | can | next::
0 | 0 | 0 | 0s | 0s | method | next::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # mro.pm | ||||
2 | # | ||||
3 | # Copyright (c) 2007 Brandon L Black | ||||
4 | # Copyright (c) 2008,2009 Larry Wall and others | ||||
5 | # | ||||
6 | # You may distribute under the terms of either the GNU General Public | ||||
7 | # License or the Artistic License, as specified in the README file. | ||||
8 | # | ||||
9 | package mro; | ||||
10 | 2 | 28µs | 2 | 47µs | # spent 31µs (14+17) within mro::BEGIN@10 which was called:
# once (14µs+17µs) by Moo::_Utils::BEGIN@28 at line 10 # spent 31µs making 1 call to mro::BEGIN@10
# spent 17µs making 1 call to strict::import |
11 | 2 | 208µs | 2 | 25µs | # spent 20µs (14+5) within mro::BEGIN@11 which was called:
# once (14µs+5µs) by Moo::_Utils::BEGIN@28 at line 11 # spent 20µs making 1 call to mro::BEGIN@11
# spent 5µs making 1 call to warnings::import |
12 | |||||
13 | # mro.pm versions < 1.00 reserved for MRO::Compat | ||||
14 | # for partial back-compat to 5.[68].x | ||||
15 | 1 | 700ns | our $VERSION = '1.11'; | ||
16 | |||||
17 | sub import { | ||||
18 | mro::set_mro(scalar(caller), $_[1]) if $_[1]; | ||||
19 | } | ||||
20 | |||||
21 | package # hide me from PAUSE | ||||
22 | next; | ||||
23 | |||||
24 | sub can { mro::_nextcan($_[0], 0) } | ||||
25 | |||||
26 | sub method { | ||||
27 | my $method = mro::_nextcan($_[0], 1); | ||||
28 | goto &$method; | ||||
29 | } | ||||
30 | |||||
31 | package # hide me from PAUSE | ||||
32 | maybe::next; | ||||
33 | |||||
34 | sub method { | ||||
35 | my $method = mro::_nextcan($_[0], 0); | ||||
36 | goto &$method if defined $method; | ||||
37 | return; | ||||
38 | } | ||||
39 | |||||
40 | 1 | 500ns | require XSLoader; | ||
41 | 1 | 168µs | 1 | 159µs | XSLoader::load('mro'); # spent 159µs making 1 call to XSLoader::load |
42 | |||||
43 | 1 | 5µs | 1; | ||
44 | |||||
45 | __END__ | ||||
# spent 26µs within mro::get_linear_isa which was called 6 times, avg 4µs/call:
# 2 times (14µs+0s) by Moo::_constructor_maker_for at line 179 of Moo.pm, avg 7µs/call
# 2 times (6µs+0s) by Method::Generate::Constructor::install_delayed at line 80 of Method/Generate/Constructor.pm, avg 3µs/call
# 2 times (6µs+0s) by Method::Generate::Constructor::__ANON__[/usr/local/share/perl/5.18.2/Method/Generate/Constructor.pm:102] at line 83 of Method/Generate/Constructor.pm, avg 3µs/call | |||||
# spent 6µs within mro::method_changed_in which was called 3 times, avg 2µs/call:
# 3 times (6µs+0s) by constant::import at line 151 of constant.pm, avg 2µs/call |