← Index
Performance Profile   « block view • line view • sub view »
For t/test-parsing
  Run on Sun Nov 14 09:49:57 2010
Reported on Sun Nov 14 09:50:07 2010

File /home/tamil/util/marc-moose/lib/MARC/Moose/Parser.pm
Statements Executed 9
Total Time 0.0001909 seconds
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sMARC::Moose::Parser::::BEGINMARC::Moose::Parser::BEGIN
0000s0sMARC::Moose::Parser::::beginMARC::Moose::Parser::begin
0000s0sMARC::Moose::Parser::::endMARC::Moose::Parser::end
0000s0sMARC::Moose::Parser::::parseMARC::Moose::Parser::parse
LineStmts.Exclusive
Time
Avg.Code
1package MARC::Moose::Parser;
2# ABSTRACT: A record parser base class
3
4331µs10µsuse namespace::autoclean;
# spent 65µs making 1 call to namespace::autoclean::import
53131µs44µsuse Moose;
6
7
8# FIXME Experimental. Not used yet.
9#has converter => (
10# is => 'rw',
11# isa => 'Text::IconvPtr',
12# default => sub { Text::Iconv->new( "cp857", "utf8" ) }
13#);
14
15
16sub begin {
17 return "";
18}
19
20
21sub end {
22 return "";
23}
24
25
26sub parse {
27 return MARC::Moose::Record->new();
28};
29
30114µs14µs__PACKAGE__->meta->make_immutable;
# spent 3.01ms making 1 call to Class::MOP::Class::make_immutable # spent 27µs making 1 call to MARC::Moose::Parser::meta
31
3216µs6µs1;
33
34=method begin
35
36=method end
37
38=method parse
39
40Return a MARC::Moose::Record object build from a parsed string
41
42=head1 SEE ALSO
43
44=for :list
45* L<MARC::Moose>
46* L<MARC::Moose::Parser::Iso2709>
47* L<MARC::Moose::Parser::MARC::Moosexml>
4819µs9µs* L<MARC::Moose::Parser::Isis>