← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Fri Aug 4 10:12:01 2017
Reported on Fri Aug 4 10:12:17 2017

Filename/usr/libdata/perl5/amd64-openbsd/OpenBSD/MkTemp.pm
StatementsExecuted 23 statements in 746µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
311194µs194µsOpenBSD::MkTemp::::mkstemps_realOpenBSD::MkTemp::mkstemps_real (xsub)
31142µs235µsOpenBSD::MkTemp::::mkstempOpenBSD::MkTemp::mkstemp
11121µs21µsOpenBSD::MkTemp::::BEGIN@3OpenBSD::MkTemp::BEGIN@3
11110µs14µsOpenBSD::MkTemp::::BEGIN@4OpenBSD::MkTemp::BEGIN@4
11110µs20µsOpenBSD::MkTemp::::BEGIN@7OpenBSD::MkTemp::BEGIN@7
1118µs16µ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
3254µs121µs
# spent 21µs within OpenBSD::MkTemp::BEGIN@3 which was called: # once (21µs+0s) by OpenBSD::Temp::BEGIN@23 at line 3
use 5.012002;
# spent 21µs making 1 call to OpenBSD::MkTemp::BEGIN@3
4230µs217µs
# spent 14µ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 14µs making 1 call to OpenBSD::MkTemp::BEGIN@4 # spent 4µs making 1 call to strict::import
5225µs223µs
# spent 16µ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 16µs making 1 call to OpenBSD::MkTemp::BEGIN@5 # spent 7µs making 1 call to warnings::import
6
72174µs230µs
# spent 20µ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 20µ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 );
111700nsour $VERSION = '0.02';
12
131900nsrequire XSLoader;
141216µs1207µsXSLoader::load('OpenBSD::MkTemp', $VERSION);
# spent 207µs making 1 call to XSLoader::load
15
16sub mkstemp($)
17
# spent 235µs (42+194) within OpenBSD::MkTemp::mkstemp which was called 3 times, avg 78µs/call: # 3 times (42µs+194µs) by OpenBSD::Temp::permanent_file at line 104 of OpenBSD/Temp.pm, avg 78µs/call
{
1833µs my $template = shift;
193216µs3194µs my $fh = mkstemps_real($template, 0) || return;
# spent 194µs making 3 calls to OpenBSD::MkTemp::mkstemps_real, avg 65µs/call
20317µ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
3217µs1;
33__END__
 
# spent 194µs within OpenBSD::MkTemp::mkstemps_real which was called 3 times, avg 65µs/call: # 3 times (194µs+0s) by OpenBSD::MkTemp::mkstemp at line 19, avg 65µs/call
sub OpenBSD::MkTemp::mkstemps_real; # xsub