← 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:11 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/AnyParser.pm
StatementsExecuted 16 statements in 1.68ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11151µs51µsMarkdent::Role::AnyParser::::BEGIN@2Markdent::Role::AnyParser::BEGIN@2
11142µs14.7msMarkdent::Role::AnyParser::::BEGIN@10Markdent::Role::AnyParser::BEGIN@10
11141µs57µsMarkdent::Role::AnyParser::::BEGIN@6Markdent::Role::AnyParser::BEGIN@6
11140µs145µsMarkdent::Role::AnyParser::::BEGIN@7Markdent::Role::AnyParser::BEGIN@7
11139µs221µsMarkdent::Role::AnyParser::::BEGIN@9Markdent::Role::AnyParser::BEGIN@9
0000s0sMarkdent::Role::AnyParser::::_debug_look_forMarkdent::Role::AnyParser::_debug_look_for
0000s0sMarkdent::Role::AnyParser::::_detab_textMarkdent::Role::AnyParser::_detab_text
0000s0sMarkdent::Role::AnyParser::::_make_eventMarkdent::Role::AnyParser::_make_event
0000s0sMarkdent::Role::AnyParser::::_send_eventMarkdent::Role::AnyParser::_send_event
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::AnyParser;
2
# spent 51µs within Markdent::Role::AnyParser::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::AnyParser::VERSION = '0.17';
4178µs151µs}
# spent 51µs making 1 call to Markdent::Role::AnyParser::BEGIN@2
5
6396µs274µs
# spent 57µs (41+17) within Markdent::Role::AnyParser::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
use strict;
# spent 57µs making 1 call to Markdent::Role::AnyParser::BEGIN@6 # spent 17µs making 1 call to strict::import
73103µs2250µs
# spent 145µs (40+105) within Markdent::Role::AnyParser::BEGIN@7 which was called: # once (40µs+105µ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 145µs making 1 call to Markdent::Role::AnyParser::BEGIN@7 # spent 105µs making 1 call to warnings::import
8
93102µs2402µs
# spent 221µs (39+182) within Markdent::Role::AnyParser::BEGIN@9 which was called: # once (39µs+182µ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 namespace::autoclean;
# spent 221µs making 1 call to Markdent::Role::AnyParser::BEGIN@9 # spent 182µs making 1 call to namespace::autoclean::import
1031.13ms229.3ms
# spent 14.7ms (42µs+14.7) within Markdent::Role::AnyParser::BEGIN@10 which was called: # once (42µs+14.7ms) 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 Moose::Role;
# spent 14.7ms making 1 call to Markdent::Role::AnyParser::BEGIN@10 # spent 14.7ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456]
11
12118µs160.3mswith 'Markdent::Role::DebugPrinter';
# spent 60.3ms making 1 call to Moose::Role::with
13
14116µs1689µshas handler => (
# spent 689µs making 1 call to Moose::Role::has
15 is => 'ro',
16 does => 'Markdent::Role::Handler',
17 required => 1,
18);
19
20sub _send_event {
21 my $self = shift;
22
23 $self->handler()->handle_event( $self->_make_event(@_) );
24}
25
26sub _make_event {
27 my $self = shift;
28 my $class = shift;
29
30 my $real_class = $class =~ /::/ ? $class : 'Markdent::Event::' . $class;
31
32 return $real_class->new(@_);
33}
34
35sub _detab_text {
36 my $self = shift;
37 my $text = shift;
38
39 # Ripped off from Text::Mardkown
40 ${$text} =~ s{ ^
41 (.*?)
42 \t
43 }
44 { $1 . (q{ } x (4 - length($1) % 4))}xmge;
45
46 return;
47}
48
49sub _debug_look_for {
50 my $self = shift;
51
52 return unless $self->debug();
53
54 my @look_debug = map { ref $_ ? "$_->[0] ($_->[1])" : $_ } @_;
55
56 my $msg = "Looking for the following possible matches:\n";
57 $msg .= " - $_\n" for @look_debug;
58
59 $self->_print_debug($msg);
60}
61
62149µs1;
63
64# ABSTRACT: A role for block and span parsers
65
- -
68=pod
69
- -
123159µs118.6ms__END__