← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 20:36:06 2020
Reported on Wed Feb 12 21:42:25 2020

Filename/usr/lib/x86_64-linux-gnu/perl/5.28/IO/Seekable.pm
StatementsExecuted 15 statements in 373µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11111µs11µsIO::Seekable::::BEGIN@5IO::Seekable::BEGIN@5
1115µs26µsIO::Seekable::::BEGIN@11IO::Seekable::BEGIN@11
1115µs6µsIO::Seekable::::BEGIN@7IO::Seekable::BEGIN@7
1115µs32µsIO::Seekable::::BEGIN@6IO::Seekable::BEGIN@6
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
5236µs111µs
# spent 11µs within IO::Seekable::BEGIN@5 which was called: # once (11µs+0s) by File::Temp::BEGIN@15 at line 5
use 5.008_001;
# spent 11µs making 1 call to IO::Seekable::BEGIN@5
6218µs259µs
# spent 32µs (5+27) within IO::Seekable::BEGIN@6 which was called: # once (5µs+27µs) by File::Temp::BEGIN@15 at line 6
use Carp;
# spent 32µs making 1 call to IO::Seekable::BEGIN@6 # spent 27µs making 1 call to Exporter::import
7220µs28µs
# spent 6µ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 6µ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;> :-(
112260µs247µs
# spent 26µs (5+21) within IO::Seekable::BEGIN@11 which was called: # once (5µs+21µs) by File::Temp::BEGIN@15 at line 11
use Fcntl qw(SEEK_SET SEEK_CUR SEEK_END);
# spent 26µs making 1 call to IO::Seekable::BEGIN@11 # spent 21µs making 1 call to Exporter::import
121300nsrequire Exporter;
13
141800nsour @EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END);
15112µsour @ISA = qw(Exporter);
16
171200nsour $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
3414µs1;