| Filename | /usr/share/perl/5.10/File/Spec.pm |
| Statements | Executed 13 statements in 351µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 18µs | 23µs | File::Spec::BEGIN@3 |
| 1 | 1 | 1 | 10µs | 64µs | File::Spec::BEGIN@4 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package File::Spec; | ||||
| 2 | |||||
| 3 | 3 | 32µs | 2 | 29µs | # spent 23µs (18+5) within File::Spec::BEGIN@3 which was called:
# once (18µs+5µs) by IO::File::BEGIN@12 at line 3 # spent 23µs making 1 call to File::Spec::BEGIN@3
# spent 6µs making 1 call to strict::import |
| 4 | 3 | 98µs | 2 | 118µs | # spent 64µs (10+54) within File::Spec::BEGIN@4 which was called:
# once (10µs+54µs) by IO::File::BEGIN@12 at line 4 # spent 64µs making 1 call to File::Spec::BEGIN@4
# spent 54µs making 1 call to vars::import |
| 5 | |||||
| 6 | 1 | 600ns | $VERSION = '3.30'; | ||
| 7 | 1 | 24µs | $VERSION = eval $VERSION; # spent 3µs executing statements in string eval | ||
| 8 | |||||
| 9 | 1 | 8µ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 | |||||
| 19 | 1 | 3µs | my $module = $module{$^O} || 'Unix'; | ||
| 20 | |||||
| 21 | 1 | 157µs | require "File/Spec/$module.pm"; | ||
| 22 | 1 | 14µs | @ISA = ("File::Spec::$module"); | ||
| 23 | |||||
| 24 | 1 | 16µs | 1; | ||
| 25 | |||||
| 26 | __END__ |