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

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Simple/Document.pm
StatementsExecuted 29 statements in 11.1ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1117.02ms7.16msMarkdent::Simple::Document::::BEGIN@7Markdent::Simple::Document::BEGIN@7
1115.23ms11.2sMarkdent::Simple::Document::::BEGIN@10Markdent::Simple::Document::BEGIN@10
1112.14ms2.61sMarkdent::Simple::Document::::BEGIN@9Markdent::Simple::Document::BEGIN@9
1111.59ms1.74msMarkdent::Simple::Document::::BEGIN@6Markdent::Simple::Document::BEGIN@6
111158µs1.18msMarkdent::Simple::Document::::BEGIN@12Markdent::Simple::Document::BEGIN@12
111116µs308µsMarkdent::Simple::Document::::BEGIN@14Markdent::Simple::Document::BEGIN@14
11193µs93µsMarkdent::Simple::Document::::BEGIN@2Markdent::Simple::Document::BEGIN@2
11158µs17.7msMarkdent::Simple::Document::::BEGIN@11Markdent::Simple::Document::BEGIN@11
11147µs25.2msMarkdent::Simple::Document::::BEGIN@16Markdent::Simple::Document::BEGIN@16
11144µs23.3msMarkdent::Simple::Document::::BEGIN@15Markdent::Simple::Document::BEGIN@15
0000s0sMarkdent::Simple::Document::::markdown_to_htmlMarkdent::Simple::Document::markdown_to_html
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Markdent::Simple::Document;
2
# spent 93µs within Markdent::Simple::Document::BEGIN@2 which was called: # once (93µs+0s) by main::BEGIN@0 at line 4
BEGIN {
3177µs $Markdent::Simple::Document::VERSION = '0.17';
41166µs193µs}
# spent 93µs making 1 call to Markdent::Simple::Document::BEGIN@2
5
631.53ms21.77ms
# spent 1.74ms (1.59+156µs) within Markdent::Simple::Document::BEGIN@6 which was called: # once (1.59ms+156µs) by main::BEGIN@0 at line 6
use strict;
# spent 1.74ms making 1 call to Markdent::Simple::Document::BEGIN@6 # spent 23µs making 1 call to strict::import
736.60ms27.24ms
# spent 7.16ms (7.02+147µs) within Markdent::Simple::Document::BEGIN@7 which was called: # once (7.02ms+147µs) by main::BEGIN@0 at line 7
use warnings;
# spent 7.16ms making 1 call to Markdent::Simple::Document::BEGIN@7 # spent 76µs making 1 call to warnings::import
8
93700µs12.61s
# spent 2.61s (2.14ms+2.61) within Markdent::Simple::Document::BEGIN@9 which was called: # once (2.14ms+2.61s) by main::BEGIN@0 at line 9
use Markdent::Handler::HTMLStream::Document;
# spent 2.61s making 1 call to Markdent::Simple::Document::BEGIN@9
103610µs111.2s
# spent 11.2s (5.23ms+11.2) within Markdent::Simple::Document::BEGIN@10 which was called: # once (5.23ms+11.2s) by main::BEGIN@0 at line 10
use Markdent::Parser;
# spent 11.2s making 1 call to Markdent::Simple::Document::BEGIN@10
113222µs235.4ms
# spent 17.7ms (58µs+17.7) within Markdent::Simple::Document::BEGIN@11 which was called: # once (58µs+17.7ms) by main::BEGIN@0 at line 11
use Markdent::Types qw( Str );
# spent 17.7ms making 1 call to Markdent::Simple::Document::BEGIN@11 # spent 17.7ms making 1 call to MooseX::Types::Combine::import
123242µs22.20ms
# spent 1.18ms (158µs+1.02) within Markdent::Simple::Document::BEGIN@12 which was called: # once (158µs+1.02ms) by main::BEGIN@0 at line 12
use MooseX::Params::Validate qw( validated_list );
# spent 1.18ms making 1 call to Markdent::Simple::Document::BEGIN@12 # spent 1.02ms making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:756]
13
143114µs2500µs
# spent 308µs (116+192) within Markdent::Simple::Document::BEGIN@14 which was called: # once (116µs+192µs) by main::BEGIN@0 at line 14
use namespace::autoclean;
# spent 308µs making 1 call to Markdent::Simple::Document::BEGIN@14 # spent 192µs making 1 call to namespace::autoclean::import
153157µs246.5ms
# spent 23.3ms (44µs+23.2) within Markdent::Simple::Document::BEGIN@15 which was called: # once (44µs+23.2ms) by main::BEGIN@0 at line 15
use Moose;
# spent 23.3ms making 1 call to Markdent::Simple::Document::BEGIN@15 # spent 23.2ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456]
163616µs250.3ms
# spent 25.2ms (47µs+25.1) within Markdent::Simple::Document::BEGIN@16 which was called: # once (47µs+25.1ms) by main::BEGIN@0 at line 16
use MooseX::StrictConstructor;
# spent 25.2ms making 1 call to Markdent::Simple::Document::BEGIN@16 # spent 25.1ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456]
17
18sub markdown_to_html {
19 my $self = shift;
20 my ( $dialect, $title, $markdown ) = validated_list(
21 \@_,
22 dialect => { isa => Str, default => 'Standard' },
23 title => { isa => Str },
24 markdown => { isa => Str },
25 );
26
27 my $capture = q{};
28 open my $fh, '>', \$capture
29 or die $!;
30
31 my $handler = Markdent::Handler::HTMLStream::Document->new(
32 title => $title,
33 output => $fh,
34 );
35
36 my $parser
37 = Markdent::Parser->new( dialect => $dialect, handler => $handler );
38
39 $parser->parse( markdown => $markdown );
40
41 return $capture;
42}
43
44111µs1;
45
46# ABSTRACT: Convert Markdown to an HTML Document
47
- -
50=pod
51
- -
108158µs118.7ms__END__