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

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/DebugPrinter.pm
StatementsExecuted 20 statements in 1.61ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11176µs14.9msMarkdent::Role::DebugPrinter::::BEGIN@12Markdent::Role::DebugPrinter::BEGIN@12
11155µs124µsMarkdent::Role::DebugPrinter::::BEGIN@7Markdent::Role::DebugPrinter::BEGIN@7
11151µs51µsMarkdent::Role::DebugPrinter::::BEGIN@2Markdent::Role::DebugPrinter::BEGIN@2
11147µs15.4msMarkdent::Role::DebugPrinter::::BEGIN@9Markdent::Role::DebugPrinter::BEGIN@9
11145µs223µsMarkdent::Role::DebugPrinter::::BEGIN@11Markdent::Role::DebugPrinter::BEGIN@11
11139µs56µsMarkdent::Role::DebugPrinter::::BEGIN@6Markdent::Role::DebugPrinter::BEGIN@6
0000s0sMarkdent::Role::DebugPrinter::::_debug_parse_resultMarkdent::Role::DebugPrinter::_debug_parse_result
0000s0sMarkdent::Role::DebugPrinter::::_print_debugMarkdent::Role::DebugPrinter::_print_debug
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::DebugPrinter;
2
# spent 51µs within Markdent::Role::DebugPrinter::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 {
3131µs $Markdent::Role::DebugPrinter::VERSION = '0.17';
4178µs151µs}
# spent 51µs making 1 call to Markdent::Role::DebugPrinter::BEGIN@2
5
6394µs273µs
# spent 56µs (39+17) within Markdent::Role::DebugPrinter::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::DebugPrinter::BEGIN@6 # spent 17µs making 1 call to strict::import
73136µs2192µs
# spent 124µs (55+69) within Markdent::Role::DebugPrinter::BEGIN@7 which was called: # once (55µs+69µ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 124µs making 1 call to Markdent::Role::DebugPrinter::BEGIN@7 # spent 68µs making 1 call to warnings::import
8
93144µs230.7ms
# spent 15.4ms (47µs+15.3) within Markdent::Role::DebugPrinter::BEGIN@9 which was called: # once (47µs+15.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 9
use Markdent::Types qw( Bool );
# spent 15.4ms making 1 call to Markdent::Role::DebugPrinter::BEGIN@9 # spent 15.3ms making 1 call to MooseX::Types::Combine::import
10
113103µs2402µs
# spent 223µs (45+179) within Markdent::Role::DebugPrinter::BEGIN@11 which was called: # once (45µs+179µ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 namespace::autoclean;
# spent 223µs making 1 call to Markdent::Role::DebugPrinter::BEGIN@11 # spent 179µs making 1 call to namespace::autoclean::import
123856µs229.7ms
# spent 14.9ms (76µs+14.8) within Markdent::Role::DebugPrinter::BEGIN@12 which was called: # once (76µs+14.8ms) 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
use Moose::Role;
# spent 14.9ms making 1 call to Markdent::Role::DebugPrinter::BEGIN@12 # spent 14.8ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456]
13
14126µs21.07mshas debug => (
# spent 723µs making 1 call to Moose::Role::has # spent 345µs making 1 call to __TYPE__::Bool
15 is => 'rw',
16 isa => Bool,
17 default => $ENV{MARKDENT_DEBUG} || 0,
18);
19
2017µsmy $HR1 = q{=} x 70;
2115µsmy $HR2 = q{-} x 70;
22
23sub _debug_parse_result {
24 my $self = shift;
25 my $text = shift;
26 my $type = shift;
27 my $extra = shift || [];
28
29 my $msg = '[' . $text . "]\n" . $HR2 . "\n" . ' - ' . $type . "\n";
30 while ( @{$extra} ) {
31 my ( $key, $value ) = splice @{$extra}, 0, 2;
32 $msg .= sprintf( ' - %-10s : %s', $key, $value );
33 $msg .= "\n";
34 }
35
36 $self->_print_debug($msg);
37}
38
39sub _print_debug {
40 warn $HR1 . "\n" . ( ref $_[0] ) . "\n" . $_[1] . "\n";
41}
42
43164µs1;
44
45# ABSTRACT: A role for classes which output debugging information
46
- -
49=pod
50
- -
107162µs119.9ms__END__