| Filename | /usr/lib/perl/5.10/mro.pm |
| Statements | Executed 10 statements in 710µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 268 | 1 | 1 | 738µs | 738µs | mro::method_changed_in (xsub) |
| 1 | 1 | 1 | 28µs | 35µs | mro::BEGIN@10 |
| 1 | 1 | 1 | 16µs | 39µs | mro::BEGIN@11 |
| 3 | 1 | 1 | 13µs | 13µs | mro::set_mro (xsub) |
| 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 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 | 3 | 49µs | 2 | 43µs | # spent 35µs (28+8) within mro::BEGIN@10 which was called:
# once (28µs+8µs) by Modern::Perl::BEGIN@20 at line 10 # spent 35µs making 1 call to mro::BEGIN@10
# spent 8µs making 1 call to strict::import |
| 11 | 3 | 392µs | 2 | 61µs | # spent 39µs (16+22) within mro::BEGIN@11 which was called:
# once (16µs+22µs) by Modern::Perl::BEGIN@20 at line 11 # spent 39µs making 1 call to mro::BEGIN@11
# spent 22µ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 | 1µs | our $VERSION = '1.01'; | ||
| 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 | 1µs | require XSLoader; | ||
| 41 | 1 | 257µs | 1 | 247µs | XSLoader::load('mro', $VERSION); # spent 247µs making 1 call to XSLoader::load |
| 42 | |||||
| 43 | 1 | 9µs | 1; | ||
| 44 | |||||
| 45 | __END__ | ||||
# spent 738µs within mro::method_changed_in which was called 268 times, avg 3µs/call:
# 268 times (738µs+0s) by constant::import at line 113 of constant.pm, avg 3µs/call | |||||
# spent 13µs within mro::set_mro which was called 3 times, avg 4µs/call:
# 3 times (13µs+0s) by Modern::Perl::import at line 27 of Modern/Perl.pm, avg 4µs/call |