← 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/File/Glob.pm
StatementsExecuted 28 statements in 1.41ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11140µs45µsFile::Glob::::BEGIN@3File::Glob::BEGIN@3
11134µs786µsFile::Glob::::importFile::Glob::import
11120µs94µsFile::Glob::::BEGIN@54File::Glob::BEGIN@54
11117µs26µsFile::Glob::::BEGIN@58File::Glob::BEGIN@58
11111µs11µsFile::Glob::::CORE:matchFile::Glob::CORE:match (opcode)
2224µs4µsFile::Glob::::GLOB_CSHFile::Glob::GLOB_CSH (xsub)
0000s0sFile::Glob::::globFile::Glob::glob
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package File::Glob;
2
32424µs251µs
# spent 45µs (40+6) within File::Glob::BEGIN@3 which was called: # once (40µs+6µs) by File::GlobMapper::BEGIN@10 at line 3
use strict;
# spent 45µs making 1 call to File::Glob::BEGIN@3 # spent 6µs making 1 call to strict::import
4our($VERSION, @ISA, @EXPORT_OK, @EXPORT_FAIL, %EXPORT_TAGS, $DEFAULT_FLAGS);
5
611µsrequire XSLoader;
7
8110µs@ISA = qw(Exporter);
9
10# NOTE: The glob() export is only here for compatibility with 5.6.0.
11# csh_glob() should not be used directly, unless you know what you're doing.
12
1316µs%EXPORT_TAGS = (
14 'glob' => [ qw(
15 GLOB_ABEND
16 GLOB_ALPHASORT
17 GLOB_ALTDIRFUNC
18 GLOB_BRACE
19 GLOB_CSH
20 GLOB_ERR
21 GLOB_ERROR
22 GLOB_LIMIT
23 GLOB_MARK
24 GLOB_NOCASE
25 GLOB_NOCHECK
26 GLOB_NOMAGIC
27 GLOB_NOSORT
28 GLOB_NOSPACE
29 GLOB_QUOTE
30 GLOB_TILDE
31 bsd_glob
32 glob
33 ) ],
34);
3515µs$EXPORT_TAGS{bsd_glob} = [@{$EXPORT_TAGS{glob}}];
3612µspop @{$EXPORT_TAGS{bsd_glob}}; # no "glob"
37
3815µs@EXPORT_OK = (@{$EXPORT_TAGS{'glob'}}, 'csh_glob');
39
4011µs$VERSION = '1.26';
41
42
# spent 786µs (34+753) within File::Glob::import which was called: # once (34µs+753µs) by File::GlobMapper::BEGIN@10 at line 19 of File/GlobMapper.pm
sub import {
4312µs require Exporter;
4418µs local $Exporter::ExportLevel = $Exporter::ExportLevel + 1;
45 Exporter::import(grep {
46317µs1753µs my $passthrough;
# spent 753µs making 1 call to Exporter::import
4724µs if ($_ eq ':case') {
48 $DEFAULT_FLAGS &= ~GLOB_NOCASE()
49 }
50 elsif ($_ eq ':nocase') {
51 $DEFAULT_FLAGS |= GLOB_NOCASE();
52 }
53 elsif ($_ eq ':globally') {
54299µs2167µs
# spent 94µs (20+73) within File::Glob::BEGIN@54 which was called: # once (20µs+73µs) by File::GlobMapper::BEGIN@10 at line 54
no warnings 'redefine';
# spent 94µs making 1 call to File::Glob::BEGIN@54 # spent 73µs making 1 call to warnings::unimport
55 *CORE::GLOBAL::glob = \&File::Glob::csh_glob;
56 }
57 elsif ($_ eq ':bsd_glob') {
582342µs235µs
# spent 26µs (17+9) within File::Glob::BEGIN@58 which was called: # once (17µs+9µs) by File::GlobMapper::BEGIN@10 at line 58
no strict; *{caller."::glob"} = \&bsd_glob_override;
# spent 26µs making 1 call to File::Glob::BEGIN@58 # spent 9µs making 1 call to strict::unimport
59 $passthrough = 1;
60 }
61 else {
6222µs $passthrough = 1;
63 }
6422µs $passthrough;
65 } @_);
66}
67
681418µs1403µsXSLoader::load();
# spent 403µs making 1 call to XSLoader::load
69
70113µs12µs$DEFAULT_FLAGS = GLOB_CSH();
# spent 2µs making 1 call to File::Glob::GLOB_CSH
71121µs111µsif ($^O =~ /^(?:MSWin32|VMS|os2|dos|riscos)$/) {
# spent 11µs making 1 call to File::Glob::CORE:match
72 $DEFAULT_FLAGS |= GLOB_NOCASE();
73}
74
75# File::Glob::glob() is deprecated because its prototype is different from
76# CORE::glob() (use bsd_glob() instead)
77sub glob {
78 splice @_, 1; # no flags
79 goto &bsd_glob;
80}
81
82132µs1;
83__END__
 
# spent 11µs within File::Glob::CORE:match which was called: # once (11µs+0s) by File::GlobMapper::BEGIN@10 at line 71
sub File::Glob::CORE:match; # opcode
# spent 4µs within File::Glob::GLOB_CSH which was called 2 times, avg 2µs/call: # once (2µs+0s) by File::GlobMapper::BEGIN@10 at line 70 # once (2µs+0s) by File::GlobMapper::BEGIN@10 at line 20 of File/GlobMapper.pm
sub File::Glob::GLOB_CSH; # xsub