Filename | /usr/lib/perl/5.14/mro.pm |
Statements | Executed 8 statements in 308µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
440 | 2 | 2 | 836µs | 836µs | get_linear_isa (xsub) | mro::
521 | 2 | 1 | 690µs | 690µs | get_pkg_gen (xsub) | mro::
104 | 1 | 1 | 140µs | 140µs | method_changed_in (xsub) | mro::
1 | 1 | 1 | 12µs | 15µs | BEGIN@10 | mro::
1 | 1 | 1 | 11µs | 15µs | BEGIN@11 | 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 | 20µs | 2 | 18µs | # spent 15µs (12+3) within mro::BEGIN@10 which was called:
# once (12µs+3µs) by MRO::Compat::BEGIN@10 at line 10 # spent 15µs making 1 call to mro::BEGIN@10
# spent 3µs making 1 call to strict::import |
11 | 2 | 148µs | 2 | 20µs | # spent 15µs (11+4) within mro::BEGIN@11 which was called:
# once (11µs+4µs) by MRO::Compat::BEGIN@10 at line 11 # spent 15µs making 1 call to mro::BEGIN@11
# spent 4µ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 | 500ns | our $VERSION = '1.07'; | ||
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 | 300ns | require XSLoader; | ||
41 | 1 | 134µs | 1 | 128µs | XSLoader::load('mro'); # spent 128µs making 1 call to XSLoader::load |
42 | |||||
43 | 1 | 4µs | 1; | ||
44 | |||||
45 | __END__ | ||||
# spent 836µs within mro::get_linear_isa which was called 440 times, avg 2µs/call:
# 429 times (802µs+0s) by Class::MOP::Class::linearized_isa at line 999 of Class/MOP/Class.pm, avg 2µs/call
# 11 times (34µs+0s) by Moose::init_meta at line 183 of Moose.pm, avg 3µs/call | |||||
# spent 690µs within mro::get_pkg_gen which was called 521 times, avg 1µs/call:
# 501 times (667µs+0s) by Class::MOP::Mixin::HasMethods::update_package_cache_flag at line 194 of Class/MOP/Mixin/HasMethods.pm, avg 1µs/call
# 20 times (23µs+0s) by Class::MOP::Mixin::HasMethods::_full_method_map at line 200 of Class/MOP/Mixin/HasMethods.pm, avg 1µs/call | |||||
# spent 140µs within mro::method_changed_in which was called 104 times, avg 1µs/call:
# 104 times (140µs+0s) by constant::import at line 147 of constant.pm, avg 1µs/call |