← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:11 2016

Filename/usr/local/lib/perl/5.18.2/Moose/Meta/Role/Method/Required.pm
StatementsExecuted 37 statements in 257µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
242178µs379µsMoose::Meta::Role::Method::Required::::newMoose::Meta::Role::Method::Required::new
1119µs18µsMoose::Meta::Role::Method::Required::::BEGIN@4Moose::Meta::Role::Method::Required::BEGIN@4
1118µs42µsMoose::Meta::Role::Method::Required::::BEGIN@9Moose::Meta::Role::Method::Required::BEGIN@9
1118µs25µsMoose::Meta::Role::Method::Required::::BEGIN@13Moose::Meta::Role::Method::Required::BEGIN@13
1116µs385µsMoose::Meta::Role::Method::Required::::BEGIN@6Moose::Meta::Role::Method::Required::BEGIN@6
1116µs9µsMoose::Meta::Role::Method::Required::::BEGIN@5Moose::Meta::Role::Method::Required::BEGIN@5
0000s0sMoose::Meta::Role::Method::Required::::__ANON__[:10]Moose::Meta::Role::Method::Required::__ANON__[:10]
0000s0sMoose::Meta::Role::Method::Required::::__ANON__[:9]Moose::Meta::Role::Method::Required::__ANON__[: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::Role::Method::Required;
21400nsour $VERSION = '2.1604';
3
4219µs227µs
# spent 18µs (9+9) within Moose::Meta::Role::Method::Required::BEGIN@4 which was called: # once (9µs+9µs) by Moose::Meta::Role::BEGIN@13 at line 4
use strict;
# spent 18µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@4 # spent 9µs making 1 call to strict::import
5217µs212µs
# spent 9µs (6+3) within Moose::Meta::Role::Method::Required::BEGIN@5 which was called: # once (6µs+3µs) by Moose::Meta::Role::BEGIN@13 at line 5
use warnings;
# spent 9µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@5 # spent 3µs making 1 call to warnings::import
6257µs2763µs
# spent 385µs (6+378) within Moose::Meta::Role::Method::Required::BEGIN@6 which was called: # once (6µs+378µs) by Moose::Meta::Role::BEGIN@13 at line 6
use metaclass;
# spent 385µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@6 # spent 378µs making 1 call to metaclass::import
7
8use overload
9
# spent 42µs (8+33) within Moose::Meta::Role::Method::Required::BEGIN@9 which was called: # once (8µs+33µs) by Moose::Meta::Role::BEGIN@13 at line 11
'""' => sub { shift->name }, # stringify to method name
10 'bool' => sub { 1 },
11224µs275µs fallback => 1;
# spent 42µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@9 # spent 33µs making 1 call to overload::import
12
13263µs243µs
# spent 25µs (8+18) within Moose::Meta::Role::Method::Required::BEGIN@13 which was called: # once (8µs+18µs) by Moose::Meta::Role::BEGIN@13 at line 13
use parent 'Class::MOP::Object';
# spent 25µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@13 # spent 18µs making 1 call to parent::import
14
15# This is not a Moose::Meta::Role::Method because it has no implementation, it
16# is just a name
17
1813µs3269µs__PACKAGE__->meta->add_attribute('name' => (
# spent 250µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 15µs making 1 call to Moose::Meta::Role::Method::Required::meta # spent 4µs making 1 call to Class::MOP::_definition_context
19 reader => 'name',
20 required => 1,
21 Class::MOP::_definition_context(),
22));
23
242470µs24301µs
# spent 379µs (78+301) within Moose::Meta::Role::Method::Required::new which was called 24 times, avg 16µs/call: # 20 times (64µs+191µs) by Moose::Meta::Role::add_required_methods at line 264 of Moose/Meta/Role.pm, avg 13µs/call # 4 times (13µs+110µs) by Moose::Meta::Role::add_conflicting_method at line 281 of Moose/Meta/Role.pm, avg 31µs/call
sub new { shift->_new(@_) }
# spent 191µs making 20 calls to Moose::Meta::Role::Method::Required::_new, avg 10µs/call # spent 110µs making 4 calls to Moose::Meta::Role::Method::Conflicting::_new, avg 27µs/call
25
2614µs1;
27
28# ABSTRACT: A Moose metaclass for required methods in Roles
29
30__END__