← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:46 2015

Filename/usr/share/perl/5.20/SelectSaver.pm
StatementsExecuted 7 statements in 199µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11119µs67µsSelectSaver::::BEGIN@6SelectSaver::BEGIN@6
1119µs48µ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
31500nsour $VERSION = '1.02';
4
5111µsrequire 5.000;
6236µs2114µs
# spent 67µs (19+47) within SelectSaver::BEGIN@6 which was called: # once (19µs+47µs) by IO::File::BEGIN@10 at line 6
use Carp;
# spent 67µs making 1 call to SelectSaver::BEGIN@6 # spent 47µs making 1 call to Exporter::import
72148µs288µs
# spent 48µs (9+39) within SelectSaver::BEGIN@7 which was called: # once (9µs+39µs) by IO::File::BEGIN@10 at line 7
use Symbol;
# spent 48µs making 1 call to SelectSaver::BEGIN@7 # spent 39µ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
2214µs1;