| 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.04ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 54µs | 54µs | Markdent::Role::EventsAsMethods::BEGIN@2 |
| 1 | 1 | 1 | 50µs | 72µs | Markdent::Role::EventsAsMethods::BEGIN@6 |
| 1 | 1 | 1 | 43µs | 13.6ms | Markdent::Role::EventsAsMethods::BEGIN@12 |
| 1 | 1 | 1 | 41µs | 110µs | Markdent::Role::EventsAsMethods::BEGIN@7 |
| 1 | 1 | 1 | 39µs | 249µs | Markdent::Role::EventsAsMethods::BEGIN@11 |
| 1 | 1 | 1 | 39µs | 201µ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 54µs within Markdent::Role::EventsAsMethods::BEGIN@2 which was called:
# once (54µs+0s) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 4 | ||||
| 3 | 1 | 30µs | $Markdent::Role::EventsAsMethods::VERSION = '0.17'; | ||
| 4 | 1 | 84µs | 1 | 54µs | } # spent 54µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@2 |
| 5 | |||||
| 6 | 3 | 108µs | 2 | 95µs | # spent 72µs (50+23) within Markdent::Role::EventsAsMethods::BEGIN@6 which was called:
# once (50µs+23µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 6 # spent 72µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@6
# spent 22µs making 1 call to strict::import |
| 7 | 3 | 107µs | 2 | 178µs | # spent 110µs (41+69) within Markdent::Role::EventsAsMethods::BEGIN@7 which was called:
# once (41µs+69µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 7 # spent 110µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@7
# spent 69µs making 1 call to warnings::import |
| 8 | |||||
| 9 | 3 | 107µs | 2 | 363µs | # spent 201µs (39+162) within Markdent::Role::EventsAsMethods::BEGIN@9 which was called:
# once (39µs+162µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 9 # spent 201µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@9
# spent 162µs making 1 call to Exporter::import |
| 10 | |||||
| 11 | 3 | 108µs | 2 | 459µs | # spent 249µs (39+210) within Markdent::Role::EventsAsMethods::BEGIN@11 which was called:
# once (39µs+210µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 11 # spent 249µs making 1 call to Markdent::Role::EventsAsMethods::BEGIN@11
# spent 210µs making 1 call to namespace::autoclean::import |
| 12 | 3 | 392µs | 2 | 27.1ms | # spent 13.6ms (43µs+13.5) within Markdent::Role::EventsAsMethods::BEGIN@12 which was called:
# once (43µs+13.5ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 12 # spent 13.6ms making 1 call to Markdent::Role::EventsAsMethods::BEGIN@12
# spent 13.5ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 13 | |||||
| 14 | 1 | 17µs | 1 | 27.8ms | with 'Markdent::Role::Handler'; # spent 27.8ms 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 | 54µs | 1 | 8.97ms | __END__ # spent 8.97ms making 1 call to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:26] |