← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 03:38:15 2020
Reported on Wed Feb 12 04:56:35 2020

Filename/usr/lib/x86_64-linux-gnu/perl/5.28/IO/Seekable.pm
StatementsExecuted 15 statements in 272µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11112µs12µsIO::Seekable::::BEGIN@5IO::Seekable::BEGIN@5
1115µs31µsIO::Seekable::::BEGIN@6IO::Seekable::BEGIN@6
1115µs7µsIO::Seekable::::BEGIN@7IO::Seekable::BEGIN@7
1115µs27µsIO::Seekable::::BEGIN@11IO::Seekable::BEGIN@11
1113µs3µsIO::Seekable::::BEGIN@8IO::Seekable::BEGIN@8
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
5233µs112µs
# spent 12µs within IO::Seekable::BEGIN@5 which was called: # once (12µs+0s) by File::Temp::BEGIN@15 at line 5
use 5.008_001;
# spent 12µs making 1 call to IO::Seekable::BEGIN@5
6221µs257µs
# spent 31µs (5+26) within IO::Seekable::BEGIN@6 which was called: # once (5µs+26µs) by File::Temp::BEGIN@15 at line 6
use Carp;
# spent 31µs making 1 call to IO::Seekable::BEGIN@6 # spent 26µs making 1 call to Exporter::import
7218µs28µs
# spent 7µs (5+2) within IO::Seekable::BEGIN@7 which was called: # once (5µs+2µs) by File::Temp::BEGIN@15 at line 7
use strict;
# spent 7µs making 1 call to IO::Seekable::BEGIN@7 # spent 2µs making 1 call to strict::import
8220µs13µs
# spent 3µs within IO::Seekable::BEGIN@8 which was called: # once (3µs+0s) by File::Temp::BEGIN@15 at line 8
use IO::Handle ();
# spent 3µs making 1 call to IO::Seekable::BEGIN@8
9# XXX we can't get these from IO::Handle or we'll get prototype
10# mismatch warnings on C<use POSIX; use IO::File;> :-(
112158µs249µs
# spent 27µs (5+22) within IO::Seekable::BEGIN@11 which was called: # once (5µs+22µs) by File::Temp::BEGIN@15 at line 11
use Fcntl qw(SEEK_SET SEEK_CUR SEEK_END);
# spent 27µs making 1 call to IO::Seekable::BEGIN@11 # spent 22µs making 1 call to Exporter::import
121400nsrequire Exporter;
13
141900nsour @EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END);
15115µsour @ISA = qw(Exporter);
16
171300nsour $VERSION = "1.39";
18
19sub seek {
20 @_ == 3 or croak 'usage: $io->seek(POS, WHENCE)';
21 seek($_[0], $_[1], $_[2]);
22}
23
24sub sysseek {
25 @_ == 3 or croak 'usage: $io->sysseek(POS, WHENCE)';
26 sysseek($_[0], $_[1], $_[2]);
27}
28
29sub tell {
30 @_ == 1 or croak 'usage: $io->tell()';
31 tell($_[0]);
32}
33
3415µs1;