← 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:51 2015

Filename/usr/share/perl5/CGI/File/Temp.pm
StatementsExecuted 8 statements in 269µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11117µs34.5msCGI::File::Temp::::BEGIN@8CGI::File::Temp::BEGIN@8
11112µs45µsCGI::File::Temp::::BEGIN@12CGI::File::Temp::BEGIN@12
11110µs1.35msCGI::File::Temp::::BEGIN@9CGI::File::Temp::BEGIN@9
0000s0sCGI::File::Temp::::_mp_filenameCGI::File::Temp::_mp_filename
0000s0sCGI::File::Temp::::asStringCGI::File::Temp::asString
0000s0sCGI::File::Temp::::compareCGI::File::Temp::compare
0000s0sCGI::File::Temp::::handleCGI::File::Temp::handle
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# this is a back compatibility wrapper around File::Temp. DO NOT
2# use this package outside of CGI, i won't provide any help if
3# you use it directly and your code breaks horribly.
4package CGI::File::Temp;
5
61400ns$CGI::File::Temp::VERSION = '4.09';
7
8274µs269.0ms
# spent 34.5ms (17µs+34.5) within CGI::File::Temp::BEGIN@8 which was called: # once (17µs+34.5ms) by CGI::BEGIN@5 at line 8
use parent File::Temp;
# spent 34.5ms making 1 call to CGI::File::Temp::BEGIN@8 # spent 34.5ms making 1 call to parent::import
9271µs22.69ms
# spent 1.35ms (10µs+1.34) within CGI::File::Temp::BEGIN@9 which was called: # once (10µs+1.34ms) by CGI::BEGIN@5 at line 9
use parent Fh;
# spent 1.35ms making 1 call to CGI::File::Temp::BEGIN@9 # spent 1.34ms making 1 call to parent::import
10
11use overload
1217µs133µs
# spent 45µs (12+33) within CGI::File::Temp::BEGIN@12 which was called: # once (12µs+33µs) by CGI::BEGIN@5 at line 14
'""' => \&asString,
# spent 33µs making 1 call to overload::import
13 'cmp' => \&compare,
141114µs145µs 'fallback'=>1;
# spent 45µs making 1 call to CGI::File::Temp::BEGIN@12
15
16# back compatibility method since we now return a File::Temp object
17# as the filehandle (which isa IO::Handle) so calling ->handle on
18# it will fail. FIXME: deprecate this method in v5+
19sub handle { return shift; };
20
21sub compare {
22 my ( $self,$value ) = @_;
23 return "$self" cmp $value;
24}
25
26sub _mp_filename {
27 my ( $self,$filename ) = @_;
28 ${*$self}->{ _mp_filename } = $filename
29 if $filename;
30 return ${*$self}->{_mp_filename};
31}
32
33sub asString {
34 my ( $self ) = @_;
35 return $self->_mp_filename;
36}
37
3812µs1;
39