← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:42:38 2010
Reported on Wed Nov 17 22:04:43 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/5.10.1/x86_64-linux/mro.pm
StatementsExecuted 10 statements in 1.32ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11052110.3ms10.3msmro::::get_pkg_gen mro::get_pkg_gen (xsub)
8622210.0ms10.0msmro::::get_linear_isa mro::get_linear_isa (xsub)
5111558µs558µsmro::::get_mro mro::get_mro (xsub)
11175µs92µsmro::::BEGIN@10 mro::BEGIN@10
71160µs60µsmro::::method_changed_in mro::method_changed_in (xsub)
11145µs130µ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 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;
103100µs2108µs
# spent 92µs (75+17) within mro::BEGIN@10 which was called: # once (75µs+17µs) by MRO::Compat::BEGIN@10 at line 10
use strict;
# spent 92µs making 1 call to mro::BEGIN@10 # spent 16µs making 1 call to strict::import
113580µs2215µs
# spent 130µs (45+85) within mro::BEGIN@11 which was called: # once (45µs+85µs) by MRO::Compat::BEGIN@10 at line 11
use warnings;
# spent 130µs making 1 call to mro::BEGIN@11 # spent 85µ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
1514µsour $VERSION = '1.01';
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
4013µsrequire XSLoader;
411613µs1587µsXSLoader::load('mro', $VERSION);
# spent 587µs making 1 call to XSLoader::load
42
43118µs1;
44
45__END__
 
# spent 10.0ms within mro::get_linear_isa which was called 862 times, avg 12µs/call: # 837 times (9.57ms+0s) by Class::MOP::Class::linearized_isa at line 1039 of Class/MOP/Class.pm, avg 11µs/call # 25 times (452µs+0s) by Moose::init_meta at line 180 of Moose.pm, avg 18µs/call
sub mro::get_linear_isa; # xsub
# spent 558µs within mro::get_mro which was called 51 times, avg 11µs/call: # 51 times (558µs+0s) by Class::MOP::Class::class_precedence_list at line 1059 of Class/MOP/Class.pm, avg 11µs/call
sub mro::get_mro; # xsub
# spent 10.3ms within mro::get_pkg_gen which was called 1105 times, avg 9µs/call: # 1051 times (9.60ms+0s) by Class::MOP::Mixin::HasMethods::update_package_cache_flag at line 189 of Class/MOP/Mixin/HasMethods.pm, avg 9µs/call # 54 times (664µs+0s) by Class::MOP::Mixin::HasMethods::_full_method_map at line 195 of Class/MOP/Mixin/HasMethods.pm, avg 12µs/call
sub mro::get_pkg_gen; # xsub
# spent 60µs within mro::method_changed_in which was called 7 times, avg 9µs/call: # 7 times (60µs+0s) by constant::import at line 113 of constant.pm, avg 9µs/call
sub mro::method_changed_in; # xsub