← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Mon Aug 7 09:39:31 2017
Reported on Mon Aug 7 09:40:21 2017

Filename/usr/libdata/perl5/amd64-openbsd/OpenBSD/MkTemp.pm
StatementsExecuted 137 statements in 4.01ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
41112.60ms2.60msOpenBSD::MkTemp::::mkstemps_realOpenBSD::MkTemp::mkstemps_real (xsub)
40111.95ms1.95msOpenBSD::MkTemp::::mkdtempOpenBSD::MkTemp::mkdtemp (xsub)
4111702µs3.30msOpenBSD::MkTemp::::mkstempOpenBSD::MkTemp::mkstemp
11157µs57µsOpenBSD::MkTemp::::BEGIN@3OpenBSD::MkTemp::BEGIN@3
11112µs31µsOpenBSD::MkTemp::::BEGIN@7OpenBSD::MkTemp::BEGIN@7
11112µs18µsOpenBSD::MkTemp::::BEGIN@4OpenBSD::MkTemp::BEGIN@4
11111µs22µ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
3260µs157µs
# spent 57µs within OpenBSD::MkTemp::BEGIN@3 which was called: # once (57µs+0s) by OpenBSD::Temp::BEGIN@23 at line 3
use 5.012002;
# spent 57µs making 1 call to OpenBSD::MkTemp::BEGIN@3
4239µs223µs
# spent 18µs (12+6) within OpenBSD::MkTemp::BEGIN@4 which was called: # once (12µs+6µs) by OpenBSD::Temp::BEGIN@23 at line 4
use strict;
# spent 18µs making 1 call to OpenBSD::MkTemp::BEGIN@4 # spent 6µs making 1 call to strict::import
5231µs234µs
# spent 22µs (11+11) within OpenBSD::MkTemp::BEGIN@5 which was called: # once (11µs+11µs) by OpenBSD::Temp::BEGIN@23 at line 5
use warnings;
# spent 22µs making 1 call to OpenBSD::MkTemp::BEGIN@5 # spent 11µs making 1 call to warnings::import
6
72234µs249µs
# spent 31µs (12+18) within OpenBSD::MkTemp::BEGIN@7 which was called: # once (12µs+18µs) by OpenBSD::Temp::BEGIN@23 at line 7
use Exporter 'import';
# spent 31µs making 1 call to OpenBSD::MkTemp::BEGIN@7 # spent 18µ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
1311µsrequire XSLoader;
141297µs1286µsXSLoader::load('OpenBSD::MkTemp', $VERSION);
# spent 286µs making 1 call to XSLoader::load
15
16sub mkstemp($)
17
# spent 3.30ms (702µs+2.60) within OpenBSD::MkTemp::mkstemp which was called 41 times, avg 81µs/call: # 41 times (702µs+2.60ms) by OpenBSD::Temp::permanent_file at line 104 of OpenBSD/Temp.pm, avg 81µs/call
{
184144µs my $template = shift;
19412.91ms412.60ms my $fh = mkstemps_real($template, 0) || return;
# spent 2.60ms making 41 calls to OpenBSD::MkTemp::mkstemps_real, avg 63µs/call
2041376µ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
3219µs1;
33__END__
 
# spent 1.95ms within OpenBSD::MkTemp::mkdtemp which was called 40 times, avg 49µs/call: # 40 times (1.95ms+0s) by OpenBSD::Temp::permanent_dir at line 114 of OpenBSD/Temp.pm, avg 49µs/call
sub OpenBSD::MkTemp::mkdtemp; # xsub
# spent 2.60ms within OpenBSD::MkTemp::mkstemps_real which was called 41 times, avg 63µs/call: # 41 times (2.60ms+0s) by OpenBSD::MkTemp::mkstemp at line 19, avg 63µs/call
sub OpenBSD::MkTemp::mkstemps_real; # xsub