← 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:13 2010

Filename/usr/lib/perl/5.10/Storable.pm
StatementsExecuted 27 statements in 596µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.05ms10.5msStorable::::BEGIN@23Storable::BEGIN@23
11183µs83µsStorable::::bootstrapStorable::bootstrap (xsub)
11124µs303µsStorable::::BEGIN@22Storable::BEGIN@22
11121µs117µsStorable::::BEGIN@24Storable::BEGIN@24
11115µs243µsStorable::::BEGIN@44Storable::BEGIN@44
0000s0sStorable::::CLONEStorable::CLONE
0000s0sStorable::::retrieve_fdStorable::retrieve_fd
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#
2# Copyright (c) 1995-2000, Raphael Manfredi
3#
4# You may redistribute only under the same terms as Perl 5, as specified
5# in the README file that comes with the distribution.
6#
7
812µsrequire DynaLoader;
911µsrequire Exporter;
10115µspackage Storable; @ISA = qw(Exporter DynaLoader);
11
1212µs@EXPORT = qw(store retrieve);
1316µs@EXPORT_OK = qw(
14 nstore store_fd nstore_fd fd_retrieve
15 freeze nfreeze thaw
16 dclone
17 retrieve_fd
18 lock_store lock_nstore lock_retrieve
19 file_magic read_magic
20);
21
22348µs2582µs
# spent 303µs (24+279) within Storable::BEGIN@22 which was called: # once (24µs+279µs) by MARC::Charset::Table::BEGIN@40 at line 22
use AutoLoader;
# spent 303µs making 1 call to Storable::BEGIN@22 # spent 279µs making 1 call to AutoLoader::import
233179µs211.6ms
# spent 10.5ms (2.05+8.46) within Storable::BEGIN@23 which was called: # once (2.05ms+8.46ms) by MARC::Charset::Table::BEGIN@40 at line 23
use FileHandle;
# spent 10.5ms making 1 call to Storable::BEGIN@23 # spent 1.05ms making 1 call to FileHandle::import
243141µs2213µs
# spent 117µs (21+96) within Storable::BEGIN@24 which was called: # once (21µs+96µs) by MARC::Charset::Table::BEGIN@40 at line 24
use vars qw($canonical $forgive_me $VERSION);
# spent 117µs making 1 call to Storable::BEGIN@24 # spent 96µs making 1 call to vars::import
25
2611µs$VERSION = '2.21';
2713µs*AUTOLOAD = \&AutoLoader::AUTOLOAD; # Grrr...
28
29#
30# Use of Log::Agent is optional
31#
32
33{
3426µs local $SIG{__DIE__};
35141µs eval "use Log::Agent";
# spent 118µs executing statements in string eval
# includes 105µs spent executing 1 call to 1 sub defined therein.
36}
37
3811µsrequire Carp;
39
40#
41# They might miss :flock in Fcntl
42#
43
44
# spent 243µs (15+228) within Storable::BEGIN@44 which was called: # once (15µs+228µs) by MARC::Charset::Table::BEGIN@40 at line 53
BEGIN {
45313µs1228µs if (eval { require Fcntl; 1 } && exists $Fcntl::EXPORT_TAGS{'flock'}) {
# spent 228µs making 1 call to Exporter::import
46 Fcntl->import(':flock');
47 } else {
48 eval q{
49 sub LOCK_SH () {1}
50 sub LOCK_EX () {2}
51 };
52 }
531108µs1243µs}
# spent 243µs making 1 call to Storable::BEGIN@44
54
55sub CLONE {
56 # clone context under threads
57 Storable::init_perinterp();
58}
59
60# Can't Autoload cleanly as this clashes 8.3 with &retrieve
61sub retrieve_fd { &fd_retrieve } # Backward compatibility
62
63# By default restricted hashes are downgraded on earlier perls.
64
6511µs$Storable::downgrade_restricted = 1;
6611µs$Storable::accept_future_minor = 1;
67110µs1446µsbootstrap Storable;
# spent 446µs making 1 call to DynaLoader::bootstrap
68117µs1;
69__END__
 
# spent 83µs within Storable::bootstrap which was called: # once (83µs+0s) by DynaLoader::bootstrap at line 215 of DynaLoader.pm
sub Storable::bootstrap; # xsub