← Index
NYTProf Performance Profile   « line view »
For fastest.pl
  Run on Fri Jan 31 20:48:16 2014
Reported on Fri Jan 31 20:49:40 2014

Filename/opt/perl-5.18.1/lib/5.18.1/darwin-thread-multi-2level/mro.pm
StatementsExecuted 8 statements in 498µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31022688µs688µsmro::::get_linear_isa mro::get_linear_isa (xsub)
40321619µs619µsmro::::get_pkg_gen mro::get_pkg_gen (xsub)
11115µs33µsmro::::BEGIN@10 mro::BEGIN@10
61110µs10µsmro::::method_changed_in mro::method_changed_in (xsub)
1119µs14µsmro::::BEGIN@11 mro::BEGIN@11
0000s0smaybe::next::::methodmaybe::next::method
0000s0smro::::import mro::import
0000s0snext::::can next::can
0000s0snext::::method next::method
Call graph for these subroutines as a Graphviz dot language file.
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#
9package mro;
10232µs250µs
# spent 33µs (15+18) within mro::BEGIN@10 which was called: # once (15µs+18µs) by Mouse::Util::BEGIN@22 at line 10
use strict;
# spent 33µs making 1 call to mro::BEGIN@10 # spent 18µs making 1 call to strict::import
112232µs220µs
# spent 14µs (9+5) within mro::BEGIN@11 which was called: # once (9µs+5µs) by Mouse::Util::BEGIN@22 at line 11
use warnings;
# spent 14µs making 1 call to mro::BEGIN@11 # spent 5µ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
151700nsour $VERSION = '1.11';
16
17sub import {
18 mro::set_mro(scalar(caller), $_[1]) if $_[1];
19}
20
21package # hide me from PAUSE
22 next;
23
24sub can { mro::_nextcan($_[0], 0) }
25
26sub method {
27 my $method = mro::_nextcan($_[0], 1);
28 goto &$method;
29}
30
31package # hide me from PAUSE
32 maybe::next;
33
34sub method {
35 my $method = mro::_nextcan($_[0], 0);
36 goto &$method if defined $method;
37 return;
38}
39
401400nsrequire XSLoader;
411228µs1218µsXSLoader::load('mro');
# spent 218µs making 1 call to XSLoader::load
42
4316µs1;
44
45__END__
 
# spent 688µs within mro::get_linear_isa which was called 310 times, avg 2µs/call: # 309 times (684µs+0s) by Class::MOP::Class::linearized_isa at line 999 of Class/MOP/Class.pm, avg 2µs/call # once (4µs+0s) by Moose::init_meta at line 183 of Moose.pm
sub mro::get_linear_isa; # xsub
# spent 619µs within mro::get_pkg_gen which was called 403 times, avg 2µs/call: # 386 times (598µs+0s) by Class::MOP::Mixin::HasMethods::update_package_cache_flag at line 194 of Class/MOP/Mixin/HasMethods.pm, avg 2µs/call # 17 times (22µs+0s) by Class::MOP::Mixin::HasMethods::_full_method_map at line 200 of Class/MOP/Mixin/HasMethods.pm, avg 1µs/call
sub mro::get_pkg_gen; # xsub
# spent 10µs within mro::method_changed_in which was called 6 times, avg 2µs/call: # 6 times (10µs+0s) by constant::import at line 151 of constant.pm, avg 2µs/call
sub mro::method_changed_in; # xsub