| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/darwin-2level/mro.pm |
| Statements | Executed 8 statements in 427µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 144 | 1 | 1 | 187µs | 187µs | mro::method_changed_in (xsub) |
| 3 | 1 | 1 | 14µs | 14µs | mro::get_linear_isa (xsub) |
| 1 | 1 | 1 | 12µs | 25µs | mro::BEGIN@10 |
| 1 | 1 | 1 | 11µs | 15µs | mro::BEGIN@11 |
| 0 | 0 | 0 | 0s | 0s | maybe::next::method |
| 0 | 0 | 0 | 0s | 0s | mro::import |
| 0 | 0 | 0 | 0s | 0s | next::can |
| 0 | 0 | 0 | 0s | 0s | next::method |
| 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 | 38µs | # spent 25µs (12+13) within mro::BEGIN@10 which was called:
# once (12µs+13µs) by Pod::Wordlist::BEGIN@8 at line 10 # spent 25µs making 1 call to mro::BEGIN@10
# spent 13µs making 1 call to strict::import |
| 11 | 2 | 142µs | 2 | 18µs | # spent 15µs (11+4) within mro::BEGIN@11 which was called:
# once (11µs+4µs) by Pod::Wordlist::BEGIN@8 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.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 | 600ns | require XSLoader; | ||
| 41 | 1 | 260µs | 1 | 252µs | XSLoader::load('mro'); # spent 252µs making 1 call to XSLoader::load |
| 42 | |||||
| 43 | 1 | 3µs | 1; | ||
| 44 | |||||
| 45 | __END__ | ||||
# spent 14µs within mro::get_linear_isa which was called 3 times, avg 5µs/call:
# 3 times (14µs+0s) by Class::Tiny::get_all_attributes_for at line 64 of Class/Tiny.pm, avg 5µs/call | |||||
# spent 187µs within mro::method_changed_in which was called 144 times, avg 1µs/call:
# 144 times (187µs+0s) by constant::import at line 198 of constant.pm, avg 1µs/call |