← Index
NYTProf Performance Profile   « line view »
For examples/Atom-timer.pl
  Run on Mon Aug 12 14:45:28 2013
Reported on Mon Aug 12 14:46:15 2013

Filename/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/MooseX/Storage/IO/StorableFile.pm
StatementsExecuted 12 statements in 320µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.86ms2.29msMooseX::Storage::IO::StorableFile::::BEGIN@10MooseX::Storage::IO::StorableFile::BEGIN@10
1119µs9µsMooseX::Storage::IO::StorableFile::::BEGIN@5MooseX::Storage::IO::StorableFile::BEGIN@5
1118µs83µsMooseX::Storage::IO::StorableFile::::BEGIN@33MooseX::Storage::IO::StorableFile::BEGIN@33
1116µs1.86msMooseX::Storage::IO::StorableFile::::BEGIN@8MooseX::Storage::IO::StorableFile::BEGIN@8
0000s0sMooseX::Storage::IO::StorableFile::::loadMooseX::Storage::IO::StorableFile::load
0000s0sMooseX::Storage::IO::StorableFile::::storeMooseX::Storage::IO::StorableFile::store
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package MooseX::Storage::IO::StorableFile;
2{
32700ns $MooseX::Storage::IO::StorableFile::VERSION = '0.39';
4}
5
# spent 9µs within MooseX::Storage::IO::StorableFile::BEGIN@5 which was called: # once (9µs+0s) by Module::Runtime::require_module at line 7
BEGIN {
614µs $MooseX::Storage::IO::StorableFile::AUTHORITY = 'cpan:STEVAN';
7117µs19µs}
# spent 9µs making 1 call to MooseX::Storage::IO::StorableFile::BEGIN@5
8229µs23.71ms
# spent 1.86ms (6µs+1.85) within MooseX::Storage::IO::StorableFile::BEGIN@8 which was called: # once (6µs+1.85ms) by Module::Runtime::require_module at line 8
use Moose::Role;
# spent 1.86ms making 1 call to MooseX::Storage::IO::StorableFile::BEGIN@8 # spent 1.85ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:519]
9
102231µs12.29ms
# spent 2.29ms (1.86+432µs) within MooseX::Storage::IO::StorableFile::BEGIN@10 which was called: # once (1.86ms+432µs) by Module::Runtime::require_module at line 10
use Storable ();
# spent 2.29ms making 1 call to MooseX::Storage::IO::StorableFile::BEGIN@10
11
1211µs1100µsrequires 'pack';
# spent 100µs making 1 call to Moose::Role::requires
131900ns135µsrequires 'unpack';
# spent 35µs making 1 call to Moose::Role::requires
14
15sub load {
16 my ( $class, $filename, @args ) = @_;
17 # try thawing
18 return $class->thaw( Storable::retrieve($filename), @args )
19 if $class->can('thaw');
20 # otherwise just unpack
21 $class->unpack( Storable::retrieve($filename), @args );
22}
23
24sub store {
25 my ( $self, $filename, @args ) = @_;
26 Storable::nstore(
27 # try freezing, otherwise just pack
28 ($self->can('freeze') ? $self->freeze(@args) : $self->pack(@args)),
29 $filename
30 );
31}
32
33230µs2158µs
# spent 83µs (8+75) within MooseX::Storage::IO::StorableFile::BEGIN@33 which was called: # once (8µs+75µs) by Module::Runtime::require_module at line 33
no Moose::Role;
# spent 83µs making 1 call to MooseX::Storage::IO::StorableFile::BEGIN@33 # spent 75µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:706]
34
3516µs1;
36
37__END__