Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/5.18.0/darwin-thread-multi-2level/mro.pm |
Statements | Executed 8 statements in 336µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
957 | 2 | 1 | 1.01ms | 1.01ms | get_pkg_gen (xsub) | mro::
434 | 2 | 2 | 593µs | 593µs | get_linear_isa (xsub) | mro::
23 | 1 | 1 | 31µs | 31µs | get_mro (xsub) | mro::
1 | 1 | 1 | 10µs | 23µs | BEGIN@10 | mro::
6 | 1 | 1 | 7µs | 7µs | method_changed_in (xsub) | mro::
1 | 1 | 1 | 6µs | 6µs | set_mro (xsub) | mro::
1 | 1 | 1 | 6µs | 9µ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 | 37µs | # spent 23µs (10+13) within mro::BEGIN@10 which was called:
# once (10µs+13µs) by Modern::Perl::BEGIN@12 at line 10 # spent 23µs making 1 call to mro::BEGIN@10
# spent 13µs making 1 call to strict::import |
11 | 2 | 145µs | 2 | 12µs | # spent 9µs (6+3) within mro::BEGIN@11 which was called:
# once (6µs+3µs) by Modern::Perl::BEGIN@12 at line 11 # spent 9µs making 1 call to mro::BEGIN@11
# spent 3µ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 | 400ns | 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 | 300ns | require XSLoader; | ||
41 | 1 | 166µs | 1 | 160µs | XSLoader::load('mro'); # spent 160µs making 1 call to XSLoader::load |
42 | |||||
43 | 1 | 4µs | 1; | ||
44 | |||||
45 | __END__ | ||||
# spent 593µs within mro::get_linear_isa which was called 434 times, avg 1µs/call:
# 430 times (584µs+0s) by Class::MOP::Class::linearized_isa at line 999 of Class/MOP/Class.pm, avg 1µs/call
# 4 times (9µs+0s) by Moose::init_meta at line 183 of Moose.pm, avg 2µs/call | |||||
# spent 31µs within mro::get_mro which was called 23 times, avg 1µs/call:
# 23 times (31µs+0s) by Class::MOP::Class::class_precedence_list at line 1019 of Class/MOP/Class.pm, avg 1µs/call | |||||
# spent 1.01ms within mro::get_pkg_gen which was called 957 times, avg 1µs/call:
# 913 times (960µs+0s) by Class::MOP::Mixin::HasMethods::update_package_cache_flag at line 194 of Class/MOP/Mixin/HasMethods.pm, avg 1µs/call
# 44 times (54µs+0s) by Class::MOP::Mixin::HasMethods::_full_method_map at line 200 of Class/MOP/Mixin/HasMethods.pm, avg 1µs/call | |||||
# spent 7µs within mro::method_changed_in which was called 6 times, avg 1µs/call:
# 6 times (7µs+0s) by constant::import at line 151 of constant.pm, avg 1µs/call | |||||
# spent 6µs within mro::set_mro which was called:
# once (6µs+0s) by Modern::Perl::import at line 44 of Modern/Perl.pm |