← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Fri Aug 4 10:15:59 2017
Reported on Fri Aug 4 10:16:18 2017

Filename/usr/libdata/perl5/amd64-openbsd/OpenBSD/MkTemp.pm
StatementsExecuted 17 statements in 615µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111101µs101µsOpenBSD::MkTemp::::mkstemps_realOpenBSD::MkTemp::mkstemps_real (xsub)
11129µs29µsOpenBSD::MkTemp::::BEGIN@3OpenBSD::MkTemp::BEGIN@3
11119µs120µsOpenBSD::MkTemp::::mkstempOpenBSD::MkTemp::mkstemp
11110µs19µsOpenBSD::MkTemp::::BEGIN@7OpenBSD::MkTemp::BEGIN@7
11110µs13µsOpenBSD::MkTemp::::BEGIN@4OpenBSD::MkTemp::BEGIN@4
1118µs15µsOpenBSD::MkTemp::::BEGIN@5OpenBSD::MkTemp::BEGIN@5
0000s0sOpenBSD::MkTemp::::mkstempsOpenBSD::MkTemp::mkstemps
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package OpenBSD::MkTemp;
2
3257µs129µs
# spent 29µs within OpenBSD::MkTemp::BEGIN@3 which was called: # once (29µs+0s) by OpenBSD::Temp::BEGIN@23 at line 3
use 5.012002;
# spent 29µs making 1 call to OpenBSD::MkTemp::BEGIN@3
4224µs217µs
# spent 13µs (10+4) within OpenBSD::MkTemp::BEGIN@4 which was called: # once (10µs+4µs) by OpenBSD::Temp::BEGIN@23 at line 4
use strict;
# spent 13µs making 1 call to OpenBSD::MkTemp::BEGIN@4 # spent 4µs making 1 call to strict::import
5225µs222µs
# spent 15µs (8+7) within OpenBSD::MkTemp::BEGIN@5 which was called: # once (8µs+7µs) by OpenBSD::Temp::BEGIN@23 at line 5
use warnings;
# spent 15µs making 1 call to OpenBSD::MkTemp::BEGIN@5 # spent 7µs making 1 call to warnings::import
6
72178µs229µs
# spent 19µs (10+10) within OpenBSD::MkTemp::BEGIN@7 which was called: # once (10µs+10µs) by OpenBSD::Temp::BEGIN@23 at line 7
use Exporter 'import';
# spent 19µs making 1 call to OpenBSD::MkTemp::BEGIN@7 # spent 10µs making 1 call to Exporter::import
8
912µsour @EXPORT_OK = qw( mkstemps mkstemp mkdtemp );
1011µsour @EXPORT = qw( mkstemp mkdtemp );
111800nsour $VERSION = '0.02';
12
131900nsrequire XSLoader;
141198µs1190µsXSLoader::load('OpenBSD::MkTemp', $VERSION);
# spent 190µs making 1 call to XSLoader::load
15
16sub mkstemp($)
17
# spent 120µs (19+101) within OpenBSD::MkTemp::mkstemp which was called: # once (19µs+101µs) by OpenBSD::Temp::permanent_file at line 104 of OpenBSD/Temp.pm
{
1811µs my $template = shift;
191113µs1101µs my $fh = mkstemps_real($template, 0) || return;
# spent 101µs making 1 call to OpenBSD::MkTemp::mkstemps_real
2018µs return wantarray() ? ($fh, $template) : $fh;
21}
22
23sub mkstemps($$)
24{
25 my($template, $suffix) = @_;
26 $template .= $suffix;
27 my $fh = mkstemps_real($template, length($suffix)) || return;
28 return wantarray() ? ($fh, $template) : $fh;
29}
30
31
3216µs1;
33__END__
 
# spent 101µs within OpenBSD::MkTemp::mkstemps_real which was called: # once (101µs+0s) by OpenBSD::MkTemp::mkstemp at line 19
sub OpenBSD::MkTemp::mkstemps_real; # xsub