| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/EventsAsMethods.pm |
| Statements | Executed 18 statements in 1.08ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 53µs | 53µs | Markdent::Role::EventsAsMethods::BEGIN@2 |
| 1 | 1 | 1 | 43µs | 14.5ms | Markdent::Role::EventsAsMethods::BEGIN@12 |
| 1 | 1 | 1 | 41µs | 58µs | Markdent::Role::EventsAsMethods::BEGIN@6 |
| 1 | 1 | 1 | 40µs | 123µs | Markdent::Role::EventsAsMethods::BEGIN@7 |
| 1 | 1 | 1 | 40µs | 216µs | Markdent::Role::EventsAsMethods::BEGIN@11 |
| 1 | 1 | 1 | 39µs | 203µs | Markdent::Role::EventsAsMethods::BEGIN@9 |
| 0 | 0 | 0 | 0s | 0s | Markdent::Role::EventsAsMethods::handle_event |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Markdent::Role::EventsAsMethods; | ||||
| 2 | # spent 53µs within Markdent::Role::EventsAsMethods::BEGIN@2 which was called:
# once (53µ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 | ||||
| 3 | 1 | 28µs | $Markdent::Role::EventsAsMethods::VERSION = '0.17'; | ||
| 4 | 1 | 79µs | 1 | 53µs | } # spent 53µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@2 |
| 5 | |||||
| 6 | 3 | 98µs | 2 | 75µs | # spent 58µs (41+17) within Markdent::Role::EventsAsMethods::BEGIN@6 which was called:
# once (41µ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 # spent 58µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@6
# spent 17µs making 1 call to strict::import |
| 7 | 3 | 115µs | 2 | 205µs | # spent 123µs (40+82) within Markdent::Role::EventsAsMethods::BEGIN@7 which was called:
# once (40µs+82µ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 # spent 123µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@7
# spent 82µs making 1 call to warnings::import |
| 8 | |||||
| 9 | 3 | 108µs | 2 | 366µs | # spent 203µs (39+164) within Markdent::Role::EventsAsMethods::BEGIN@9 which was called:
# once (39µs+164µ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 # spent 203µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@9
# spent 164µs making 1 call to Exporter::import |
| 10 | |||||
| 11 | 3 | 140µs | 2 | 393µs | # spent 216µs (40+177) within Markdent::Role::EventsAsMethods::BEGIN@11 which was called:
# once (40µs+177µ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 # spent 216µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@11
# spent 177µs making 1 call to namespace::autoclean::import |
| 12 | 3 | 393µs | 2 | 28.9ms | # spent 14.5ms (43µs+14.4) within Markdent::Role::EventsAsMethods::BEGIN@12 which was called:
# once (43µs+14.4ms) 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 12 # spent 14.5ms making 1 call to Markdent::Role::EventsAsMethods::BEGIN@12
# spent 14.4ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 13 | |||||
| 14 | 1 | 22µs | 1 | 37.6ms | with 'Markdent::Role::Handler'; # spent 37.6ms making 1 call to Moose::Role::with |
| 15 | |||||
| 16 | sub handle_event { | ||||
| 17 | my $self = shift; | ||||
| 18 | my $event = shift; | ||||
| 19 | |||||
| 20 | my $meth = $event->event_name(); | ||||
| 21 | |||||
| 22 | $self->$meth( $event->kv_pairs_for_attributes() ); | ||||
| 23 | } | ||||
| 24 | |||||
| 25 | 1 | 35µs | 1; | ||
| 26 | |||||
| 27 | # ABSTRACT: Turns events into method calls | ||||
| 28 | |||||
| - - | |||||
| 31 | =pod | ||||
| 32 | |||||
| - - | |||||
| 91 | 1 | 57µs | 1 | 17.2ms | __END__ # spent 17.2ms making 1 call to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:26] |