← Index
NYTProf Performance Profile   « block view • line view • sub view »
For conv.pl
  Run on Sun Nov 14 21:27:43 2010
Reported on Sun Nov 14 21:29:09 2010

Filename/home/gmc/projects/marcpm/marc-xml/conv.pl
StatementsExecuted 20012 statements in 240ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
400008290.0ms90.0msUNIVERSAL::::can UNIVERSAL::can (xsub)
50052142.5ms42.5msmain::::CORE:print main::CORE:print (opcode)
1112.88ms138msmain::::BEGIN@3 main::BEGIN@3
1111.03ms1.16msmain::::BEGIN@5 main::BEGIN@5
111310µs310µsMARC::Field::::BEGIN@66MARC::Field::BEGIN@66
321196µs96µsmro::::method_changed_in mro::method_changed_in (xsub)
321171µs71µsInternals::::SvREADONLY Internals::SvREADONLY (xsub)
81129µs29µsUNIVERSAL::::isa UNIVERSAL::isa (xsub)
11120µs59µsmain::::BEGIN@4 main::BEGIN@4
11114µs14µsmain::::CORE:binmode main::CORE:binmode (opcode)
1119µs9µsversion::::(bool version::(bool (xsub)
1119µs9µsversion::::(cmp version::(cmp (xsub)
0000s0smain::::RUNTIME main::RUNTIME
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
02362µsProfile data that couldn't be associated with a specific line:
# spent 310µs making 1 call to MARC::Field::BEGIN@66 # spent 52µs making 1 call to MARC::File::XML::DESTROY
1123µs#!/usr/bin/perl
2
33175µs2138ms
# spent 138ms (2.88+135) within main::BEGIN@3 which was called: # once (2.88ms+135ms) by main::RUNTIME at line 3
use MARC::File::XML (BinaryEncoding => 'utf8');
# spent 138ms making 1 call to main::BEGIN@3 # spent 10µs making 1 call to MARC::File::XML::import
4342µs298µs
# spent 59µs (20+39) within main::BEGIN@4 which was called: # once (20µs+39µs) by main::RUNTIME at line 4
use MARC::Record;
# spent 59µs making 1 call to main::BEGIN@4 # spent 39µs making 1 call to Exporter::import
53599µs11.16ms
# spent 1.16ms (1.03+129µs) within main::BEGIN@5 which was called: # once (1.03ms+129µs) by main::RUNTIME at line 5
use MARC::Batch;
# spent 1.16ms making 1 call to main::BEGIN@5
6
7123µs114µsbinmode STDOUT, ':utf8';
# spent 14µs making 1 call to main::CORE:binmode
8
917µs160µsmy $batch = MARC::Batch->new('XML', $ARGV[0]);
# spent 60µs making 1 call to MARC::Batch::new
1020001239ms500031.1swhile (my $record = $batch->next) {
# spent 31.1s making 5000 calls to MARC::Batch::next, avg 6.22ms/call
11 $i++;
12100007.79s print $record->as_usmarc();
# spent 7.75s making 5000 calls to MARC::Record::as_usmarc, avg 1.55ms/call # spent 41.3ms making 5000 calls to main::CORE:print, avg 8µs/call
1351.13ms if ($i % 1000 == 0) {
# spent 1.13ms making 5 calls to main::CORE:print, avg 225µs/call
14 print STDERR "$i ", scalar(localtime), "\n";
15 }
16 last if $i == 5000;
17}
18
- -
 
# spent 71µs within Internals::SvREADONLY which was called 32 times, avg 2µs/call: # 32 times (71µs+0s) by constant::import at line 111 of constant.pm, avg 2µs/call
sub Internals::SvREADONLY; # xsub
# spent 90.0ms within UNIVERSAL::can which was called 40000 times, avg 2µs/call: # 5000 times (13.5ms+0s) by XML::SAX::Base::parse at line 2602 of XML/SAX/Base.pm, avg 3µs/call # 5000 times (12.3ms+0s) by XML::SAX::Base::end_document at line 1428 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (11.6ms+0s) by XML::SAX::ExpatXS::Preload::get_start_element at line 218 of XML/SAX/ExpatXS/Preload.pm, avg 2µs/call # 5000 times (11.0ms+0s) by XML::SAX::Base::set_document_locator at line 1612 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (10.8ms+0s) by XML::SAX::Base::start_document at line 1244 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (10.3ms+0s) by XML::SAX::ExpatXS::Preload::get_end_element at line 29 of XML/SAX/ExpatXS/Preload.pm, avg 2µs/call # 5000 times (10.3ms+0s) by XML::SAX::ExpatXS::Preload::get_characters at line 155 of XML/SAX/ExpatXS/Preload.pm, avg 2µs/call # 5000 times (10.2ms+0s) by XML::SAX::ExpatXS::Preload::get_comment at line 92 of XML/SAX/ExpatXS/Preload.pm, avg 2µs/call
sub UNIVERSAL::can; # xsub
# spent 29µs within UNIVERSAL::isa which was called 8 times, avg 4µs/call: # 8 times (29µs+0s) by base::import at line 80 of base.pm, avg 4µs/call
sub UNIVERSAL::isa; # xsub
# spent 14µs within main::CORE:binmode which was called: # once (14µs+0s) by main::RUNTIME at line 7
sub main::CORE:binmode; # opcode
# spent 42.5ms within main::CORE:print which was called 5005 times, avg 8µs/call: # 5000 times (41.3ms+0s) by main::RUNTIME at line 12, avg 8µs/call # 5 times (1.13ms+0s) by main::RUNTIME at line 13, avg 225µs/call
sub main::CORE:print; # opcode
# spent 96µs within mro::method_changed_in which was called 32 times, avg 3µs/call: # 32 times (96µs+0s) by constant::import at line 113 of constant.pm, avg 3µs/call
sub mro::method_changed_in; # xsub
# spent 9µs within version::(bool which was called: # once (9µs+0s) by DynaLoader::BEGIN@24 at line 47 of Config.pm
sub version::(bool; # xsub
# spent 9µs within version::(cmp which was called: # once (9µs+0s) by DynaLoader::BEGIN@24 at line 50 of Config.pm
sub version::(cmp; # xsub