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

Filename/usr/share/perl/5.10/SelectSaver.pm
StatementsExecuted 9 statements in 221µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11128µs104µsSelectSaver::::BEGIN@6SelectSaver::BEGIN@6
11118µs87µsSelectSaver::::BEGIN@7SelectSaver::BEGIN@7
0000s0sSelectSaver::::DESTROYSelectSaver::DESTROY
0000s0sSelectSaver::::newSelectSaver::new
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package SelectSaver;
2
312µsour $VERSION = '1.02';
4
5117µsrequire 5.000;
6340µs2180µs
# spent 104µs (28+76) within SelectSaver::BEGIN@6 which was called: # once (28µs+76µs) by IO::File::BEGIN@10 at line 6
use Carp;
# spent 104µs making 1 call to SelectSaver::BEGIN@6 # spent 76µs making 1 call to Exporter::import
73157µs2156µs
# spent 87µs (18+69) within SelectSaver::BEGIN@7 which was called: # once (18µs+69µs) by IO::File::BEGIN@10 at line 7
use Symbol;
# spent 87µs making 1 call to SelectSaver::BEGIN@7 # spent 69µs making 1 call to Exporter::import
8
9sub new {
10 @_ >= 1 && @_ <= 2 or croak 'usage: SelectSaver->new( [FILEHANDLE] )';
11 my $fh = select;
12 my $self = bless \$fh, $_[0];
13 select qualify($_[1], caller) if @_ > 1;
14 $self;
15}
16
17sub DESTROY {
18 my $self = $_[0];
19 select $$self;
20}
21
2215µs1;