← Index
NYTProf Performance Profile   « line view »
For Makefile.PL
  Run on Sun Mar 1 16:04:44 2015
Reported on Sun Mar 1 16:09:02 2015

FilenameC:/tmp64ng/perl/lib/ExtUtils/MM.pm
StatementsExecuted 39 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1110s0sExtUtils::MM::::BEGIN@3ExtUtils::MM::BEGIN@3
1110s0sExtUtils::MM::::BEGIN@4ExtUtils::MM::BEGIN@4
2210s0sExtUtils::MM::::CORE:matchExtUtils::MM::CORE:match (opcode)
1110s0sExtUtils::MM::::_assertExtUtils::MM::_assert
1110s0sExtUtils::MM::::_is_win95ExtUtils::MM::_is_win95
0000s0sMM::::DESTROY MM::DESTROY
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package ExtUtils::MM;
2
320s20s
# spent 0s within ExtUtils::MM::BEGIN@3 which was called: # once (0s+0s) by main::BEGIN@1 at line 3
use strict;
# spent 0s making 1 call to ExtUtils::MM::BEGIN@3 # spent 0s making 1 call to strict::import
420s20s
# spent 0s within ExtUtils::MM::BEGIN@4 which was called: # once (0s+0s) by main::BEGIN@1 at line 4
use ExtUtils::MakeMaker::Config;
# spent 0s making 1 call to ExtUtils::MM::BEGIN@4 # spent 0s making 1 call to ExtUtils::MakeMaker::Config::import
5
610sour $VERSION = '7.04';
7
810srequire ExtUtils::Liblist;
910srequire ExtUtils::MakeMaker;
1010sour @ISA = qw(ExtUtils::Liblist ExtUtils::MakeMaker);
11
12=head1 NAME
13
14ExtUtils::MM - OS adjusted ExtUtils::MakeMaker subclass
15
16=head1 SYNOPSIS
17
18 require ExtUtils::MM;
19 my $mm = MM->new(...);
20
21=head1 DESCRIPTION
22
23B<FOR INTERNAL USE ONLY>
24
25ExtUtils::MM is a subclass of ExtUtils::MakeMaker which automatically
26chooses the appropriate OS specific subclass for you
27(ie. ExtUils::MM_Unix, etc...).
28
29It also provides a convenient alias via the MM class (I didn't want
30MakeMaker modules outside of ExtUtils/).
31
32This class might turn out to be a temporary solution, but MM won't go
33away.
34
35=cut
36
37{
38 # Convenient alias.
3910s package MM;
4010s our @ISA = qw(ExtUtils::MM);
41 sub DESTROY {}
42}
43
44
# spent 0s within ExtUtils::MM::_is_win95 which was called: # once (0s+0s) by main::BEGIN@1 at line 56
sub _is_win95 {
45 # miniperl might not have the Win32 functions available and we need
46 # to run in miniperl.
4720s my $have_win32 = eval { require Win32 };
4810s10s return $have_win32 && defined &Win32::IsWin95 ? Win32::IsWin95()
# spent 0s making 1 call to Win32::IsWin95
49 : ! defined $ENV{SYSTEMROOT};
50}
51
5210smy %Is = ();
5310s$Is{VMS} = $^O eq 'VMS';
5410s$Is{OS2} = $^O eq 'os2';
5510s$Is{MacOS} = $^O eq 'MacOS';
5610s10sif( $^O eq 'MSWin32' ) {
# spent 0s making 1 call to ExtUtils::MM::_is_win95
57 _is_win95() ? $Is{Win95} = 1 : $Is{Win32} = 1;
58}
5910s10s$Is{UWIN} = $^O =~ /^uwin(-nt)?$/;
# spent 0s making 1 call to ExtUtils::MM::CORE:match
6010s$Is{Cygwin} = $^O eq 'cygwin';
6110s$Is{NW5} = $Config{osname} eq 'NetWare'; # intentional
6210s10s$Is{BeOS} = ($^O =~ /beos/i or $^O eq 'haiku');
# spent 0s making 1 call to ExtUtils::MM::CORE:match
6310s$Is{DOS} = $^O eq 'dos';
6410sif( $Is{NW5} ) {
65 $^O = 'NetWare';
66 delete $Is{Win32};
67}
6810s$Is{VOS} = $^O eq 'vos';
6910s$Is{QNX} = $^O eq 'qnx';
7010s$Is{AIX} = $^O eq 'aix';
7110s$Is{Darwin} = $^O eq 'darwin';
72
7310s$Is{Unix} = !grep { $_ } values %Is;
74
7510smap { delete $Is{$_} unless $Is{$_} } keys %Is;
7610s10s_assert( keys %Is == 1 );
# spent 0s making 1 call to ExtUtils::MM::_assert
7710smy($OS) = keys %Is;
78
79
8010smy $class = "ExtUtils::MM_$OS";
8110seval "require $class" unless $INC{"ExtUtils/MM_$OS.pm"}; ## no critic
# spent 0s executing statements in string eval
8210sdie $@ if $@;
8310sunshift @ISA, $class;
84
85
86
# spent 0s within ExtUtils::MM::_assert which was called: # once (0s+0s) by main::BEGIN@1 at line 76
sub _assert {
8710s my $sanity = shift;
8810s die sprintf "Assert failed at %s line %d\n", (caller)[1,2] unless $sanity;
8910s return;
90}
 
# spent 0s within ExtUtils::MM::CORE:match which was called 2 times, avg 0s/call: # once (0s+0s) by main::BEGIN@1 at line 59 # once (0s+0s) by main::BEGIN@1 at line 62
sub ExtUtils::MM::CORE:match; # opcode