Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/x86_64-linux/File/Spec.pm |
Statements | Executed 11 statements in 124µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 6µs | 7µs | BEGIN@3 | File::Spec::
1 | 1 | 1 | 5µs | 30µs | BEGIN@4 | File::Spec::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package File::Spec; | ||||
2 | |||||
3 | 2 | 15µs | 2 | 8µs | # spent 7µs (6+1) within File::Spec::BEGIN@3 which was called:
# once (6µs+1µs) by File::HomeDir::BEGIN@9 at line 3 # spent 7µs making 1 call to File::Spec::BEGIN@3
# spent 1µs making 1 call to strict::import |
4 | 2 | 56µs | 2 | 56µs | # spent 30µs (5+26) within File::Spec::BEGIN@4 which was called:
# once (5µs+26µs) by File::HomeDir::BEGIN@9 at line 4 # spent 30µs making 1 call to File::Spec::BEGIN@4
# spent 26µs making 1 call to vars::import |
5 | |||||
6 | 1 | 200ns | $VERSION = '3.62'; | ||
7 | 1 | 900ns | $VERSION =~ tr/_//d; | ||
8 | |||||
9 | 1 | 6µs | my %module = (MacOS => 'Mac', | ||
10 | MSWin32 => 'Win32', | ||||
11 | os2 => 'OS2', | ||||
12 | VMS => 'VMS', | ||||
13 | epoc => 'Epoc', | ||||
14 | NetWare => 'Win32', # Yes, File::Spec::Win32 works on NetWare. | ||||
15 | symbian => 'Win32', # Yes, File::Spec::Win32 works on symbian. | ||||
16 | dos => 'OS2', # Yes, File::Spec::OS2 works on DJGPP. | ||||
17 | cygwin => 'Cygwin', | ||||
18 | amigaos => 'AmigaOS'); | ||||
19 | |||||
20 | |||||
21 | 1 | 1µs | my $module = $module{$^O} || 'Unix'; | ||
22 | |||||
23 | 1 | 34µs | require "File/Spec/$module.pm"; | ||
24 | 1 | 6µs | @ISA = ("File::Spec::$module"); | ||
25 | |||||
26 | 1 | 5µs | 1; | ||
27 | |||||
28 | __END__ |