← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:45:08 2010
Reported on Wed Nov 17 22:14:22 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/MooseX/StrictConstructor/Role/Object.pm
StatementsExecuted 15 statements in 1.23ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111119µs187µsMooseX::StrictConstructor::Role::Object::::BEGIN@7MooseX::StrictConstructor::Role::Object::BEGIN@7
11149µs49µsMooseX::StrictConstructor::Role::Object::::BEGIN@2MooseX::StrictConstructor::Role::Object::BEGIN@2
11146µs669µsMooseX::StrictConstructor::Role::Object::::BEGIN@32MooseX::StrictConstructor::Role::Object::BEGIN@32
11141µs14.5msMooseX::StrictConstructor::Role::Object::::BEGIN@9MooseX::StrictConstructor::Role::Object::BEGIN@9
11139µs57µsMooseX::StrictConstructor::Role::Object::::BEGIN@6MooseX::StrictConstructor::Role::Object::BEGIN@6
0000s0sMooseX::StrictConstructor::Role::Object::::__ANON__[:30]MooseX::StrictConstructor::Role::Object::__ANON__[:30]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package MooseX::StrictConstructor::Role::Object;
2
# spent 49µs within MooseX::StrictConstructor::Role::Object::BEGIN@2 which was called: # once (49µs+0s) by MooseX::StrictConstructor::BEGIN@12 at line 4
BEGIN {
3124µs $MooseX::StrictConstructor::Role::Object::VERSION = '0.11';
4179µs149µs}
5
63157µs275µs
# spent 57µs (39+18) within MooseX::StrictConstructor::Role::Object::BEGIN@6 which was called: # once (39µs+18µs) by MooseX::StrictConstructor::BEGIN@12 at line 6
use strict;
# spent 57µs making 1 call to MooseX::StrictConstructor::Role::Object::BEGIN@6 # spent 18µs making 1 call to strict::import
73114µs2255µs
# spent 187µs (119+68) within MooseX::StrictConstructor::Role::Object::BEGIN@7 which was called: # once (119µs+68µs) by MooseX::StrictConstructor::BEGIN@12 at line 7
use warnings;
# spent 187µs making 1 call to MooseX::StrictConstructor::Role::Object::BEGIN@7 # spent 68µs making 1 call to warnings::import
8
93672µs229.0ms
# spent 14.5ms (41µs+14.5) within MooseX::StrictConstructor::Role::Object::BEGIN@9 which was called: # once (41µs+14.5ms) by MooseX::StrictConstructor::BEGIN@12 at line 9
use Moose::Role;
# spent 14.5ms making 1 call to MooseX::StrictConstructor::Role::Object::BEGIN@9 # spent 14.5ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456]
10
11after 'BUILDALL' => sub {
12 my $self = shift;
13 my $params = shift;
14
15 my %attrs = (
16 __INSTANCE__ => 1,
17 map { $_ => 1 }
18 grep {defined}
19 map { $_->init_arg() } $self->meta()->get_all_attributes()
20 );
21
22 my @bad = sort grep { !$attrs{$_} } keys %{$params};
23
24 if (@bad) {
25 confess
26 "Found unknown attribute(s) init_arg passed to the constructor: @bad";
27 }
28
29 return;
30122µs1352µs};
# spent 352µs making 1 call to Moose::Role::after
31
323139µs21.29ms
# spent 669µs (46+623) within MooseX::StrictConstructor::Role::Object::BEGIN@32 which was called: # once (46µs+623µs) by MooseX::StrictConstructor::BEGIN@12 at line 32
no Moose::Role;
# spent 669µs making 1 call to MooseX::StrictConstructor::Role::Object::BEGIN@32 # spent 623µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557]
33
34126µs1;
35
36# ABSTRACT: A role which implements a strict constructor for Moose::Object
37
- -
40=pod
41
- -
80__END__