Filename | /Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/darwin-2level/mro.pm |
Statements | Executed 8 statements in 449µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
700 | 3 | 3 | 1.63ms | 1.63ms | get_linear_isa (xsub) | mro::
677 | 2 | 1 | 1.14ms | 1.14ms | get_pkg_gen (xsub) | mro::
31 | 1 | 1 | 40µs | 40µs | method_changed_in (xsub) | mro::
8 | 1 | 1 | 22µs | 22µs | get_mro (xsub) | mro::
1 | 1 | 1 | 13µs | 26µs | BEGIN@10 | mro::
1 | 1 | 1 | 7µs | 11µ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 | 22µs | 2 | 38µs | # spent 26µs (13+13) within mro::BEGIN@10 which was called:
# once (13µs+13µs) by MRO::Compat::BEGIN@10 at line 10 # spent 26µs making 1 call to mro::BEGIN@10
# spent 13µs making 1 call to strict::import |
11 | 2 | 156µs | 2 | 15µs | # spent 11µs (7+4) within mro::BEGIN@11 which was called:
# once (7µs+4µs) by MRO::Compat::BEGIN@10 at line 11 # spent 11µ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 | 600ns | our $VERSION = '1.09'; | ||
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 | 265µs | 1 | 257µs | XSLoader::load('mro'); # spent 257µs making 1 call to XSLoader::load |
42 | |||||
43 | 1 | 5µs | 1; | ||
44 | |||||
45 | __END__ | ||||
# spent 1.63ms within mro::get_linear_isa which was called 700 times, avg 2µs/call:
# 679 times (1.55ms+0s) by Class::MOP::Class::linearized_isa at line 1007 of Class/MOP/Class.pm, avg 2µs/call
# 17 times (77µs+0s) by Moose::init_meta at line 184 of Moose.pm, avg 5µs/call
# 4 times (10µs+0s) by overload::mycan at line 129 of overload.pm, avg 3µs/call | |||||
# spent 22µs within mro::get_mro which was called 8 times, avg 3µs/call:
# 8 times (22µs+0s) by Class::MOP::Class::class_precedence_list at line 1027 of Class/MOP/Class.pm, avg 3µs/call | |||||
# spent 1.14ms within mro::get_pkg_gen which was called 677 times, avg 2µs/call:
# 658 times (1.11ms+0s) by Class::MOP::Mixin::HasMethods::update_package_cache_flag at line 209 of Class/MOP/Mixin/HasMethods.pm, avg 2µs/call
# 19 times (33µs+0s) by Class::MOP::Mixin::HasMethods::_full_method_map at line 215 of Class/MOP/Mixin/HasMethods.pm, avg 2µs/call | |||||
# spent 40µs within mro::method_changed_in which was called 31 times, avg 1µs/call:
# 31 times (40µs+0s) by constant::import at line 162 of constant.pm, avg 1µs/call |