| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Handler/HTMLStream/Document.pm |
| Statements | Executed 24 statements in 2.99ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 2.50ms | 7.89ms | Markdent::Handler::HTMLStream::Document::BEGIN@11 |
| 1 | 1 | 1 | 1.16ms | 89.3ms | Markdent::Handler::HTMLStream::Document::BEGIN@13 |
| 1 | 1 | 1 | 706µs | 1.99s | Markdent::Handler::HTMLStream::Document::BEGIN@9 |
| 1 | 1 | 1 | 55µs | 55µs | Markdent::Handler::HTMLStream::Document::BEGIN@2 |
| 1 | 1 | 1 | 54µs | 23.6ms | Markdent::Handler::HTMLStream::Document::BEGIN@12 |
| 1 | 1 | 1 | 38µs | 55µs | Markdent::Handler::HTMLStream::Document::BEGIN@6 |
| 1 | 1 | 1 | 37µs | 102µs | Markdent::Handler::HTMLStream::Document::BEGIN@7 |
| 0 | 0 | 0 | 0s | 0s | Markdent::Handler::HTMLStream::Document::end_document |
| 0 | 0 | 0 | 0s | 0s | Markdent::Handler::HTMLStream::Document::start_document |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Markdent::Handler::HTMLStream::Document; | ||||
| 2 | # spent 55µs within Markdent::Handler::HTMLStream::Document::BEGIN@2 which was called:
# once (55µs+0s) by Markdent::Simple::Document::BEGIN@9 at line 4 | ||||
| 3 | 1 | 28µs | $Markdent::Handler::HTMLStream::Document::VERSION = '0.17'; | ||
| 4 | 1 | 73µs | 1 | 55µs | } # spent 55µs making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@2 |
| 5 | |||||
| 6 | 3 | 111µs | 2 | 72µs | # spent 55µs (38+17) within Markdent::Handler::HTMLStream::Document::BEGIN@6 which was called:
# once (38µs+17µs) by Markdent::Simple::Document::BEGIN@9 at line 6 # spent 55µs making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@6
# spent 17µs making 1 call to strict::import |
| 7 | 3 | 103µs | 2 | 167µs | # spent 102µs (37+65) within Markdent::Handler::HTMLStream::Document::BEGIN@7 which was called:
# once (37µs+65µs) by Markdent::Simple::Document::BEGIN@9 at line 7 # spent 102µs making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@7
# spent 65µs making 1 call to warnings::import |
| 8 | |||||
| 9 | 3 | 495µs | 2 | 3.51s | # spent 1.99s (706µs+1.99) within Markdent::Handler::HTMLStream::Document::BEGIN@9 which was called:
# once (706µs+1.99s) by Markdent::Simple::Document::BEGIN@9 at line 9 # spent 1.99s making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@9
# spent 1.52s making 1 call to MooseX::Types::Combine::import |
| 10 | |||||
| 11 | 3 | 532µs | 2 | 8.06ms | # spent 7.89ms (2.50+5.40) within Markdent::Handler::HTMLStream::Document::BEGIN@11 which was called:
# once (2.50ms+5.40ms) by Markdent::Simple::Document::BEGIN@9 at line 11 # spent 7.89ms making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@11
# spent 169µs making 1 call to namespace::autoclean::import |
| 12 | 3 | 164µs | 2 | 47.2ms | # spent 23.6ms (54µs+23.6) within Markdent::Handler::HTMLStream::Document::BEGIN@12 which was called:
# once (54µs+23.6ms) by Markdent::Simple::Document::BEGIN@9 at line 12 # spent 23.6ms making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@12
# spent 23.6ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 13 | 3 | 1.25ms | 2 | 137ms | # spent 89.3ms (1.16+88.1) within Markdent::Handler::HTMLStream::Document::BEGIN@13 which was called:
# once (1.16ms+88.1ms) by Markdent::Simple::Document::BEGIN@9 at line 13 # spent 89.3ms making 1 call to Markdent::Handler::HTMLStream::Document::BEGIN@13
# spent 48.0ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 14 | |||||
| 15 | 1 | 15µs | 1 | 337ms | with 'Markdent::Role::HTMLStream'; # spent 337ms making 1 call to Moose::with |
| 16 | |||||
| 17 | 1 | 27µs | 2 | 12.5ms | has title => ( # spent 12.2ms making 1 call to Moose::has
# spent 332µs making 1 call to __TYPE__::Str |
| 18 | is => 'ro', | ||||
| 19 | isa => Str, | ||||
| 20 | required => 1, | ||||
| 21 | ); | ||||
| 22 | |||||
| 23 | 1 | 5µs | my $Doctype = <<'EOF'; | ||
| 24 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||||
| 25 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| 26 | EOF | ||||
| 27 | |||||
| 28 | sub start_document { | ||||
| 29 | my $self = shift; | ||||
| 30 | |||||
| 31 | $self->_output()->print($Doctype); | ||||
| 32 | $self->_stream()->tag('html'); | ||||
| 33 | $self->_stream()->tag('head'); | ||||
| 34 | $self->_stream()->tag('title'); | ||||
| 35 | $self->_stream()->text( $self->title() ); | ||||
| 36 | $self->_stream()->tag('_title'); | ||||
| 37 | $self->_stream()->tag('_head'); | ||||
| 38 | $self->_stream()->tag('body'); | ||||
| 39 | } | ||||
| 40 | |||||
| 41 | sub end_document { | ||||
| 42 | my $self = shift; | ||||
| 43 | |||||
| 44 | $self->_stream()->tag('_body'); | ||||
| 45 | $self->_stream()->tag('_html'); | ||||
| 46 | } | ||||
| 47 | |||||
| 48 | 1 | 38µs | 2 | 129ms | __PACKAGE__->meta()->make_immutable(); # spent 129ms making 1 call to Class::MOP::Class::make_immutable
# spent 99µs making 1 call to Markdent::Handler::HTMLStream::Document::meta |
| 49 | |||||
| 50 | 1 | 93µs | 1; | ||
| 51 | |||||
| 52 | # ABSTRACT: Turns Markdent events into a complete HTML document | ||||
| 53 | |||||
| - - | |||||
| 56 | =pod | ||||
| 57 | |||||
| - - | |||||
| 117 | 1 | 63µs | 1 | 17.9ms | __END__ # spent 17.9ms making 1 call to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:26] |