← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:46:01 2015

Filename/Users/ap13/perl5/lib/perl5/darwin-2level/Moose/Meta/Method/Constructor.pm
StatementsExecuted 188 statements in 1.65ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
16111.07ms115msMoose::Meta::Method::Constructor::::newMoose::Meta::Method::Constructor::new
1611136µs114msMoose::Meta::Method::Constructor::::_initialize_bodyMoose::Meta::Method::Constructor::_initialize_body
11118µs36µsMoose::Meta::Method::Constructor::::BEGIN@4Moose::Meta::Method::Constructor::BEGIN@4
11112µs212µsMoose::Meta::Method::Constructor::::BEGIN@12Moose::Meta::Method::Constructor::BEGIN@12
11112µs47µsMoose::Meta::Method::Constructor::::BEGIN@7Moose::Meta::Method::Constructor::BEGIN@7
11111µs17µsMoose::Meta::Method::Constructor::::BEGIN@5Moose::Meta::Method::Constructor::BEGIN@5
11111µs63µsMoose::Meta::Method::Constructor::::BEGIN@9Moose::Meta::Method::Constructor::BEGIN@9
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Moose::Meta::Method::Constructor;
21900nsour $VERSION = '2.1403';
3
4237µs254µs
# spent 36µs (18+18) within Moose::Meta::Method::Constructor::BEGIN@4 which was called: # once (18µs+18µs) by Moose::Meta::Class::BEGIN@16 at line 4
use strict;
# spent 36µs making 1 call to Moose::Meta::Method::Constructor::BEGIN@4 # spent 18µs making 1 call to strict::import
5237µs222µs
# spent 17µs (11+6) within Moose::Meta::Method::Constructor::BEGIN@5 which was called: # once (11µs+6µs) by Moose::Meta::Class::BEGIN@16 at line 5
use warnings;
# spent 17µs making 1 call to Moose::Meta::Method::Constructor::BEGIN@5 # spent 6µs making 1 call to warnings::import
6
7242µs282µs
# spent 47µs (12+35) within Moose::Meta::Method::Constructor::BEGIN@7 which was called: # once (12µs+35µs) by Moose::Meta::Class::BEGIN@16 at line 7
use Scalar::Util 'weaken';
# spent 47µs making 1 call to Moose::Meta::Method::Constructor::BEGIN@7 # spent 35µs making 1 call to Exporter::import
8
91400ns
# spent 63µs (11+53) within Moose::Meta::Method::Constructor::BEGIN@9 which was called: # once (11µs+53µs) by Moose::Meta::Class::BEGIN@16 at line 10
use parent 'Moose::Meta::Method',
10145µs2116µs 'Class::MOP::Method::Constructor';
# spent 63µs making 1 call to Moose::Meta::Method::Constructor::BEGIN@9 # spent 53µs making 1 call to parent::import
11
122281µs2411µs
# spent 212µs (12+199) within Moose::Meta::Method::Constructor::BEGIN@12 which was called: # once (12µs+199µs) by Moose::Meta::Class::BEGIN@16 at line 12
use Moose::Util 'throw_exception';
# spent 212µs making 1 call to Moose::Meta::Method::Constructor::BEGIN@12 # spent 199µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:337]
13
14
# spent 115ms (1.07+114) within Moose::Meta::Method::Constructor::new which was called 16 times, avg 7.16ms/call: # 16 times (1.07ms+114ms) by Class::MOP::Class::_inline_constructor at line 1453 of Class/MOP/Class.pm, avg 7.16ms/call
sub new {
15169µs my $class = shift;
161647µs my %options = @_;
17
181610µs my $meta = $options{metaclass};
19
201615µs (ref $options{options} eq 'HASH')
21 || throw_exception( MustPassAHashOfOptions => params => \%options,
22 class => $class
23 );
24
251612µs ($options{package_name} && $options{name})
26 || throw_exception( MustSupplyPackageNameAndName => params => \%options,
27 class => $class
28 );
29
3016808µs my $self = bless {
31 'body' => undef,
32 'package_name' => $options{package_name},
33 'name' => $options{name},
34 'options' => $options{options},
35 'associated_metaclass' => $meta,
36 'definition_context' => $options{definition_context},
37 '_expected_method_class' => $options{_expected_method_class} || 'Moose::Object',
38 } => $class;
39
40 # we don't want this creating
41 # a cycle in the code, if not
42 # needed
431662µs1618µs weaken($self->{'associated_metaclass'});
# spent 18µs making 16 calls to Scalar::Util::weaken, avg 1µs/call
44
451631µs16114ms $self->_initialize_body;
# spent 114ms making 16 calls to Moose::Meta::Method::Constructor::_initialize_body, avg 7.10ms/call
46
471686µs return $self;
48}
49
50## method
51
52
# spent 114ms (136µs+113) within Moose::Meta::Method::Constructor::_initialize_body which was called 16 times, avg 7.10ms/call: # 16 times (136µs+113ms) by Moose::Meta::Method::Constructor::new at line 45, avg 7.10ms/call
sub _initialize_body {
53167µs my $self = shift;
5416120µs16113ms $self->{'body'} = $self->_generate_constructor_method_inline;
# spent 113ms making 16 calls to Class::MOP::Method::Constructor::_generate_constructor_method_inline, avg 7.09ms/call
55}
56
5714µs1;
58
59# ABSTRACT: Method Meta Object for constructors
60
61__END__