← 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/Method/Accessor/Native/Array.pm
StatementsExecuted 41 statements in 266µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
93360µs868µsMoose::Meta::Method::Accessor::Native::Array::::_inline_check_var_is_valid_indexMoose::Meta::Method::Accessor::Native::Array::_inline_check_var_is_valid_index
1119µs9µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@2Moose::Meta::Method::Accessor::Native::Array::BEGIN@2
1117µs5.82msMoose::Meta::Method::Accessor::Native::Array::::BEGIN@12Moose::Meta::Method::Accessor::Native::Array::BEGIN@12
1117µs26µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@14Moose::Meta::Method::Accessor::Native::Array::BEGIN@14
1117µs85µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@30Moose::Meta::Method::Accessor::Native::Array::BEGIN@30
1116µs9µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@10Moose::Meta::Method::Accessor::Native::Array::BEGIN@10
1116µs16µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@9Moose::Meta::Method::Accessor::Native::Array::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::Accessor::Native::Array;
2
# spent 9µs within Moose::Meta::Method::Accessor::Native::Array::BEGIN@2 which was called: # once (9µs+0s) by Module::Runtime::require_module at line 4
BEGIN {
314µs $Moose::Meta::Method::Accessor::Native::Array::AUTHORITY = 'cpan:STEVAN';
4131µs19µs}
5{
62700ns $Moose::Meta::Method::Accessor::Native::Array::VERSION = '2.1005';
7}
8
9221µs226µs
# spent 16µs (6+10) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@9 which was called: # once (6µs+10µs) by Module::Runtime::require_module at line 9
use strict;
# spent 16µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@9 # spent 10µs making 1 call to strict::import
10220µs212µs
# spent 9µs (6+3) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@10 which was called: # once (6µs+3µs) by Module::Runtime::require_module at line 10
use warnings;
# spent 9µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@10 # spent 3µs making 1 call to warnings::import
11
12234µs211.6ms
# spent 5.82ms (7µs+5.81) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@12 which was called: # once (7µs+5.81ms) by Module::Runtime::require_module at line 12
use Moose::Role;
13
14278µs246µs
# spent 26µs (7+20) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@14 which was called: # once (7µs+20µs) by Module::Runtime::require_module at line 14
use Scalar::Util qw( looks_like_number );
# spent 26µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@14 # spent 20µs making 1 call to Exporter::import
15
16
# spent 868µs (60+808) within Moose::Meta::Method::Accessor::Native::Array::_inline_check_var_is_valid_index which was called 9 times, avg 96µs/call: # 4 times (29µs+360µs) by Moose::Meta::Method::Accessor::Native::Array::get::_inline_check_arguments at line 26 of Moose/Meta/Method/Accessor/Native/Array/get.pm, avg 97µs/call # 4 times (22µs+358µs) by Moose::Meta::Method::Accessor::Native::Array::set::_inline_check_arguments at line 23 of Moose/Meta/Method/Accessor/Native/Array/set.pm, avg 95µs/call # once (8µs+89µs) by Moose::Meta::Method::Accessor::Native::Array::delete::_inline_check_arguments at line 23 of Moose/Meta/Method/Accessor/Native/Array/delete.pm
sub _inline_check_var_is_valid_index {
179800ns my $self = shift;
1892µs my ($var) = @_;
19
20 return (
21944µs18808µs 'if (!defined(' . $var . ') || ' . $var . ' !~ /^-?\d+$/) {',
# spent 799µs making 9 calls to Moose::Meta::Method::_inline_throw_error, avg 89µs/call # spent 9µs making 9 calls to Moose::Meta::Method::Delegation::delegate_to_method, avg 1µs/call
22 $self->_inline_throw_error(
23 '"The index passed to ' . $self->delegate_to_method
24 . ' must be an integer"',
25 ) . ';',
26 '}',
27 );
28}
29
30227µs2164µs
# spent 85µs (7+79) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@30 which was called: # once (7µs+79µs) by Module::Runtime::require_module at line 30
no Moose::Role;
31
3213µs1;