← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mentat.storage.mongo.pl
  Run on Tue Jun 24 09:58:41 2014
Reported on Tue Jun 24 09:59:24 2014

Filename/usr/lib/perl/5.14/IO/Seekable.pm
StatementsExecuted 17 statements in 359µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.00ms2.61msIO::Seekable::::BEGIN@9IO::Seekable::BEGIN@9
11116µs16µsIO::Seekable::::BEGIN@5IO::Seekable::BEGIN@5
1119µs42µsIO::Seekable::::BEGIN@12IO::Seekable::BEGIN@12
1117µs9µsIO::Seekable::::BEGIN@7IO::Seekable::BEGIN@7
1117µs44µsIO::Seekable::::BEGIN@6IO::Seekable::BEGIN@6
0000s0sIO::Seekable::::seekIO::Seekable::seek
0000s0sIO::Seekable::::sysseekIO::Seekable::sysseek
0000s0sIO::Seekable::::tellIO::Seekable::tell
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#
2
3package IO::Seekable;
4
5240µs116µs
# spent 16µs within IO::Seekable::BEGIN@5 which was called: # once (16µs+0s) by IO::File::BEGIN@11 at line 5
use 5.006_001;
# spent 16µs making 1 call to IO::Seekable::BEGIN@5
6222µs282µs
# spent 44µs (7+38) within IO::Seekable::BEGIN@6 which was called: # once (7µs+38µs) by IO::File::BEGIN@11 at line 6
use Carp;
# spent 44µs making 1 call to IO::Seekable::BEGIN@6 # spent 38µs making 1 call to Exporter::import
7234µs212µs
# spent 9µs (7+3) within IO::Seekable::BEGIN@7 which was called: # once (7µs+3µs) by IO::File::BEGIN@11 at line 7
use strict;
# spent 9µs making 1 call to IO::Seekable::BEGIN@7 # spent 3µs making 1 call to strict::import
81400nsour($VERSION, @EXPORT, @ISA);
92101µs12.61ms
# spent 2.61ms (2.00+612µs) within IO::Seekable::BEGIN@9 which was called: # once (2.00ms+612µs) by IO::File::BEGIN@11 at line 9
use IO::Handle ();
# spent 2.61ms making 1 call to IO::Seekable::BEGIN@9
10# XXX we can't get these from IO::Handle or we'll get prototype
11# mismatch warnings on C<use POSIX; use IO::File;> :-(
122132µs274µs
# spent 42µs (9+32) within IO::Seekable::BEGIN@12 which was called: # once (9µs+32µs) by IO::File::BEGIN@11 at line 12
use Fcntl qw(SEEK_SET SEEK_CUR SEEK_END);
# spent 42µs making 1 call to IO::Seekable::BEGIN@12 # spent 32µs making 1 call to Exporter::import
131500nsrequire Exporter;
14
1511µs@EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END);
16110µs@ISA = qw(Exporter);
17
181400ns$VERSION = "1.10";
19113µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
20
21sub seek {
22 @_ == 3 or croak 'usage: $io->seek(POS, WHENCE)';
23 seek($_[0], $_[1], $_[2]);
24}
25
26sub sysseek {
27 @_ == 3 or croak 'usage: $io->sysseek(POS, WHENCE)';
28 sysseek($_[0], $_[1], $_[2]);
29}
30
31sub tell {
32 @_ == 1 or croak 'usage: $io->tell()';
33 tell($_[0]);
34}
35
3614µs1;