← Index
NYTProf Performance Profile   « line view »
For examples/Atom-timer.pl
  Run on Mon Aug 12 14:45:28 2013
Reported on Mon Aug 12 14:46:15 2013

Filename/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Moose/Meta/Role/Method/Required.pm
StatementsExecuted 23 statements in 233µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
82128µs179µsMoose::Meta::Role::Method::Required::::newMoose::Meta::Role::Method::Required::new
11111µs38µsMoose::Meta::Role::Method::Required::::BEGIN@14Moose::Meta::Role::Method::Required::BEGIN@14
11111µs14µsMoose::Meta::Role::Method::Required::::BEGIN@11Moose::Meta::Role::Method::Required::BEGIN@11
11110µs108µsMoose::Meta::Role::Method::Required::::BEGIN@17Moose::Meta::Role::Method::Required::BEGIN@17
1118µs8µsMoose::Meta::Role::Method::Required::::BEGIN@3Moose::Meta::Role::Method::Required::BEGIN@3
1115µs15µsMoose::Meta::Role::Method::Required::::BEGIN@10Moose::Meta::Role::Method::Required::BEGIN@10
1115µs330µsMoose::Meta::Role::Method::Required::::BEGIN@12Moose::Meta::Role::Method::Required::BEGIN@12
0000s0sMoose::Meta::Role::Method::Required::::__ANON__[:14]Moose::Meta::Role::Method::Required::__ANON__[:14]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2package Moose::Meta::Role::Method::Required;
3
# spent 8µs within Moose::Meta::Role::Method::Required::BEGIN@3 which was called: # once (8µs+0s) by Moose::Meta::Role::BEGIN@21 at line 5
BEGIN {
414µs $Moose::Meta::Role::Method::Required::AUTHORITY = 'cpan:STEVAN';
5127µs18µs}
# spent 8µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@3
6{
72800ns $Moose::Meta::Role::Method::Required::VERSION = '2.1005';
8}
9
10218µs225µs
# spent 15µs (5+10) within Moose::Meta::Role::Method::Required::BEGIN@10 which was called: # once (5µs+10µs) by Moose::Meta::Role::BEGIN@21 at line 10
use strict;
# spent 15µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@10 # spent 10µs making 1 call to strict::import
11219µs217µs
# spent 14µs (11+3) within Moose::Meta::Role::Method::Required::BEGIN@11 which was called: # once (11µs+3µs) by Moose::Meta::Role::BEGIN@21 at line 11
use warnings;
# spent 14µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@11 # spent 3µs making 1 call to warnings::import
12241µs2655µs
# spent 330µs (5+325) within Moose::Meta::Role::Method::Required::BEGIN@12 which was called: # once (5µs+325µs) by Moose::Meta::Role::BEGIN@21 at line 12
use metaclass;
# spent 330µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@12 # spent 325µs making 1 call to metaclass::import
13
14
# spent 38µs (11+27) within Moose::Meta::Role::Method::Required::BEGIN@14 which was called: # once (11µs+27µs) by Moose::Meta::Role::BEGIN@21 at line 15
use overload '""' => sub { shift->name }, # stringify to method name
15227µs265µs fallback => 1;
# spent 38µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@14 # spent 27µs making 1 call to overload::import
16
17267µs2206µs
# spent 108µs (10+98) within Moose::Meta::Role::Method::Required::BEGIN@17 which was called: # once (10µs+98µs) by Moose::Meta::Role::BEGIN@21 at line 17
use base qw(Class::MOP::Object);
# spent 108µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@17 # spent 98µs making 1 call to base::import
18
19# This is not a Moose::Meta::Role::Method because it has no implementation, it
20# is just a name
21
2213µs3301µs__PACKAGE__->meta->add_attribute('name' => (
# spent 283µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 13µs making 1 call to Moose::Meta::Role::Method::Required::meta # spent 5µs making 1 call to Class::MOP::_definition_context
23 reader => 'name',
24 required => 1,
25 Class::MOP::_definition_context(),
26));
27
28823µs8152µs
# spent 179µs (28+152) within Moose::Meta::Role::Method::Required::new which was called 8 times, avg 22µs/call: # 6 times (21µs+82µs) by Moose::Meta::Role::add_required_methods at line 267 of Moose/Meta/Role.pm, avg 17µs/call # 2 times (7µs+69µs) by Moose::Meta::Role::add_conflicting_method at line 284 of Moose/Meta/Role.pm, avg 38µs/call
sub new { shift->_new(@_) }
# spent 82µs making 6 calls to Moose::Meta::Role::Method::Required::_new, avg 14µs/call # spent 69µs making 2 calls to Moose::Meta::Role::Method::Conflicting::_new, avg 35µs/call
29
3014µs1;
31
32# ABSTRACT: A Moose metaclass for required methods in Roles
33
34__END__