← 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/share/perl/5.28/SelectSaver.pm
StatementsExecuted 7 statements in 192µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11110µs35µsSelectSaver::::BEGIN@6SelectSaver::BEGIN@6
1116µs28µ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
31400nsour $VERSION = '1.02';
4
516µsrequire 5.000;
6221µs260µs
# spent 35µs (10+25) within SelectSaver::BEGIN@6 which was called: # once (10µs+25µs) by IO::Handle::BEGIN@7 at line 6
use Carp;
# spent 35µs making 1 call to SelectSaver::BEGIN@6 # spent 25µs making 1 call to Exporter::import
72162µs250µs
# spent 28µs (6+22) within SelectSaver::BEGIN@7 which was called: # once (6µs+22µs) by IO::Handle::BEGIN@7 at line 7
use Symbol;
# spent 28µs making 1 call to SelectSaver::BEGIN@7 # spent 22µ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
2213µs1;