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

Filename/home/gmc/projects/marcpm/marc-xml/conv.pl
StatementsExecuted 20012 statements in 296ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
294389221.00s1.00sUNIVERSAL::::isa UNIVERSAL::isa (xsub)
400008199.0ms99.0msUNIVERSAL::::can UNIVERSAL::can (xsub)
50052161.8ms61.8msmain::::CORE:print main::CORE:print (opcode)
1113.02ms141msmain::::BEGIN@3 main::BEGIN@3
1111.02ms1.15msmain::::BEGIN@5 main::BEGIN@5
111463µs463µsMARC::Field::::BEGIN@66MARC::Field::BEGIN@66
14611435µs435µsmro::::method_changed_in mro::method_changed_in (xsub)
14611304µs304µsInternals::::SvREADONLY Internals::SvREADONLY (xsub)
11121µs56µsmain::::BEGIN@4 main::BEGIN@4
11114µs14µsmain::::CORE:binmode main::CORE:binmode (opcode)
11114µs14µsversion::::(bool version::(bool (xsub)
11111µs11µ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
03596µsProfile data that couldn't be associated with a specific line:
# spent 463µs making 1 call to MARC::Field::BEGIN@66 # spent 77µs making 1 call to MARC::File::XML::DESTROY # spent 56µs making 1 call to XML::LibXML::END
1124µs#!/usr/bin/perl
2
33180µs2141ms
# spent 141ms (3.02+138) within main::BEGIN@3 which was called: # once (3.02ms+138ms) by main::RUNTIME at line 3
use MARC::File::XML (BinaryEncoding => 'utf8');
# spent 141ms making 1 call to main::BEGIN@3 # spent 13µs making 1 call to MARC::File::XML::import
4341µs291µs
# spent 56µs (21+35) within main::BEGIN@4 which was called: # once (21µs+35µs) by main::RUNTIME at line 4
use MARC::Record;
# spent 56µs making 1 call to main::BEGIN@4 # spent 35µs making 1 call to Exporter::import
53601µs11.15ms
# spent 1.15ms (1.02+127µs) within main::BEGIN@5 which was called: # once (1.02ms+127µs) by main::RUNTIME at line 5
use MARC::Batch;
# spent 1.15ms making 1 call to main::BEGIN@5
6
7122µs114µsbinmode STDOUT, ':utf8';
# spent 14µs making 1 call to main::CORE:binmode
8
916µs174µsmy $batch = MARC::Batch->new('XML', $ARGV[0]);
# spent 74µs making 1 call to MARC::Batch::new
1020001295ms500094.5swhile (my $record = $batch->next) {
# spent 94.5s making 5000 calls to MARC::Batch::next, avg 18.9ms/call
11 $i++;
12100008.04s print $record->as_usmarc();
# spent 7.98s making 5000 calls to MARC::Record::as_usmarc, avg 1.60ms/call # spent 60.7ms making 5000 calls to main::CORE:print, avg 12µs/call
1351.12ms if ($i % 1000 == 0) {
# spent 1.12ms making 5 calls to main::CORE:print, avg 223µs/call
14 print STDERR "$i ", scalar(localtime), "\n";
15 }
16 last if $i == 5000;
17}
18
- -
 
# spent 304µs within Internals::SvREADONLY which was called 146 times, avg 2µs/call: # 146 times (304µs+0s) by constant::import at line 111 of constant.pm, avg 2µs/call
sub Internals::SvREADONLY; # xsub
# spent 99.0ms within UNIVERSAL::can which was called 40000 times, avg 2µs/call: # 5000 times (15.5ms+0s) by XML::SAX::Base::parse at line 2602 of XML/SAX/Base.pm, avg 3µs/call # 5000 times (14.4ms+0s) by XML::SAX::Base::end_document at line 1428 of XML/SAX/Base.pm, avg 3µs/call # 5000 times (12.2ms+0s) by XML::SAX::Base::start_element at line 278 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (11.8ms+0s) by XML::SAX::Base::set_document_locator at line 1612 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (11.8ms+0s) by XML::SAX::Base::end_element at line 2187 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (11.5ms+0s) by XML::SAX::Base::start_document at line 1244 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (11.4ms+0s) by XML::SAX::Base::characters at line 186 of XML/SAX/Base.pm, avg 2µs/call # 5000 times (10.5ms+0s) by XML::SAX::Base::xml_decl at line 439 of XML/SAX/Base.pm, avg 2µs/call
sub UNIVERSAL::can; # xsub
# spent 1.00s within UNIVERSAL::isa which was called 294389 times, avg 3µs/call: # 294381 times (1.00s+0s) by XML::LibXML::SAX::Parser::process_element at line 170 of XML/LibXML/SAX/Parser.pm, avg 3µs/call # 8 times (31µ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 61.8ms within main::CORE:print which was called 5005 times, avg 12µs/call: # 5000 times (60.7ms+0s) by main::RUNTIME at line 12, avg 12µs/call # 5 times (1.12ms+0s) by main::RUNTIME at line 13, avg 223µs/call
sub main::CORE:print; # opcode
# spent 435µs within mro::method_changed_in which was called 146 times, avg 3µs/call: # 146 times (435µs+0s) by constant::import at line 113 of constant.pm, avg 3µs/call
sub mro::method_changed_in; # xsub
# spent 14µs within version::(bool which was called: # once (14µs+0s) by DynaLoader::BEGIN@24 at line 47 of Config.pm
sub version::(bool; # xsub
# spent 11µs within version::(cmp which was called: # once (11µs+0s) by DynaLoader::BEGIN@24 at line 50 of Config.pm
sub version::(cmp; # xsub