← 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:10:13 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/BalancedEvent.pm
StatementsExecuted 49 statements in 2.40ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
811544µs7.84msMarkdent::Role::BalancedEvent::::__ANON__[:41]Markdent::Role::BalancedEvent::__ANON__[:41]
11194µs926µsMarkdent::Role::BalancedEvent::::BEGIN@11Markdent::Role::BalancedEvent::BEGIN@11
11176µs16.4msMarkdent::Role::BalancedEvent::::BEGIN@10Markdent::Role::BalancedEvent::BEGIN@10
11151µs51µsMarkdent::Role::BalancedEvent::::BEGIN@2Markdent::Role::BalancedEvent::BEGIN@2
11144µs222µsMarkdent::Role::BalancedEvent::::BEGIN@13Markdent::Role::BalancedEvent::BEGIN@13
11143µs22.2msMarkdent::Role::BalancedEvent::::BEGIN@14Markdent::Role::BalancedEvent::BEGIN@14
11139µs106µsMarkdent::Role::BalancedEvent::::BEGIN@7Markdent::Role::BalancedEvent::BEGIN@7
11139µs56µsMarkdent::Role::BalancedEvent::::BEGIN@6Markdent::Role::BalancedEvent::BEGIN@6
11139µs215µsMarkdent::Role::BalancedEvent::::BEGIN@9Markdent::Role::BalancedEvent::BEGIN@9
0000s0sMarkdent::Role::BalancedEvent::::__ANON__[:37]Markdent::Role::BalancedEvent::__ANON__[:37]
0000s0sMarkdent::Role::BalancedEvent::::__ANON__[:40]Markdent::Role::BalancedEvent::__ANON__[:40]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Markdent::Role::BalancedEvent;
2
# spent 51µs within Markdent::Role::BalancedEvent::BEGIN@2 which was called: # once (51µs+0s) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 4
BEGIN {
3130µs $Markdent::Role::BalancedEvent::VERSION = '0.17';
4176µs151µs}
# spent 51µs making 1 call to Markdent::Role::BalancedEvent::BEGIN@2
5
6393µs273µs
# spent 56µs (39+17) within Markdent::Role::BalancedEvent::BEGIN@6 which was called: # once (39µs+17µs) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 6
use strict;
# spent 56µs making 1 call to Markdent::Role::BalancedEvent::BEGIN@6 # spent 17µs making 1 call to strict::import
73106µs2173µs
# spent 106µs (39+67) within Markdent::Role::BalancedEvent::BEGIN@7 which was called: # once (39µs+67µs) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 7
use warnings;
# spent 106µs making 1 call to Markdent::Role::BalancedEvent::BEGIN@7 # spent 67µs making 1 call to warnings::import
8
93124µs2391µs
# spent 215µs (39+176) within Markdent::Role::BalancedEvent::BEGIN@9 which was called: # once (39µs+176µs) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 9
use List::AllUtils qw( all );
# spent 215µs making 1 call to Markdent::Role::BalancedEvent::BEGIN@9 # spent 176µs making 1 call to Exporter::import
103190µs232.7ms
# spent 16.4ms (76µs+16.3) within Markdent::Role::BalancedEvent::BEGIN@10 which was called: # once (76µs+16.3ms) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 10
use Markdent::Types qw( ArrayRef Str );
# spent 16.4ms making 1 call to Markdent::Role::BalancedEvent::BEGIN@10 # spent 16.3ms making 1 call to MooseX::Types::Combine::import
113143µs21.76ms
# spent 926µs (94+832) within Markdent::Role::BalancedEvent::BEGIN@11 which was called: # once (94µs+832µs) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 11
use MooseX::Params::Validate qw( pos_validated_list );
# spent 926µs making 1 call to Markdent::Role::BalancedEvent::BEGIN@11 # spent 832µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:756]
12
133107µs2400µs
# spent 222µs (44+178) within Markdent::Role::BalancedEvent::BEGIN@13 which was called: # once (44µs+178µs) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 13
use namespace::autoclean;
# spent 222µs making 1 call to Markdent::Role::BalancedEvent::BEGIN@13 # spent 178µs making 1 call to namespace::autoclean::import
143852µs244.4ms
# spent 22.2ms (43µs+22.2) within Markdent::Role::BalancedEvent::BEGIN@14 which was called: # once (43µs+22.2ms) by Class::MOP::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm:118] at line 14
use MooseX::Role::Parameterized;
# spent 22.2ms making 1 call to Markdent::Role::BalancedEvent::BEGIN@14 # spent 22.2ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456]
15
16134µs331.9msparameter compare => (
# spent 26.4ms making 1 call to MooseX::Role::Parameterized::parameter # spent 5.14ms making 1 call to __TYPE__::ArrayRef # spent 370µs making 1 call to __TYPE__::Str
17 isa => ArrayRef[Str],
18);
19
20
# spent 7.84ms (544µs+7.29) within Markdent::Role::BalancedEvent::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/BalancedEvent.pm:41] which was called 8 times, avg 980µs/call: # 8 times (544µs+7.29ms) by MooseX::Role::Parameterized::Meta::Role::Parameterizable::generate_role at line 94 of MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm, avg 980µs/call
role {
2124486µs my $p = shift;
22
238114µs my @compare = @{ $p->compare() || [] };
# spent 114µs making 8 calls to Class::MOP::Class::__ANON__::SERIAL::14::compare, avg 14µs/call
24
25 method balances_event => sub {
26 my $self = shift;
27 my ($other) = pos_validated_list( \@_, { does => 'Markdent::Role::Event' } );
28
29 return 0 unless $self->name() eq $other->name();
30
31 return 0
32 unless ( $self->is_start() && $other->is_end() )
33 || ( $self->is_end() && $other->is_start() );
34
35 return 1 unless @compare;
36
37 return all { $self->$_() eq $other->$_() } @compare;
38
39 return 0;
4087.18ms };
# spent 7.18ms making 8 calls to MooseX::Role::Parameterized::method, avg 897µs/call
41122µs1145µs};
# spent 145µs making 1 call to MooseX::Role::Parameterized::role
42
43178µs1;
44
45# ABSTRACT: A parameterized role for events which can check if they match balance another event
46
- -
49=pod
50
- -
106160µs127.2ms__END__