← Index
NYTProf Performance Profile   « line view »
For split.pl
  Run on Thu Apr 20 02:05:47 2023
Reported on Thu Apr 20 18:31:10 2023

Filename/usr/share/perl/5.36/ExtUtils/MM.pm
StatementsExecuted 40 statements in 563µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1118µs9µsExtUtils::MM::::BEGIN@3ExtUtils::MM::BEGIN@3
1114µs15µsExtUtils::MM::::BEGIN@5ExtUtils::MM::BEGIN@5
1114µs18µsExtUtils::MM::::BEGIN@4ExtUtils::MM::BEGIN@4
2212µs2µsExtUtils::MM::::CORE:matchExtUtils::MM::CORE:match (opcode)
1112µs2µsExtUtils::MM::::_assertExtUtils::MM::_assert
0000s0sExtUtils::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
3218µs211µs
# spent 9µs (8+1) within ExtUtils::MM::BEGIN@3 which was called: # once (8µs+1µs) by IPC::Cmd::can_run at line 3
use strict;
# spent 9µs making 1 call to ExtUtils::MM::BEGIN@3 # spent 1µs making 1 call to strict::import
4218µs232µs
# spent 18µs (4+14) within ExtUtils::MM::BEGIN@4 which was called: # once (4µs+14µs) by IPC::Cmd::can_run at line 4
use warnings;
# spent 18µs making 1 call to ExtUtils::MM::BEGIN@4 # spent 14µs making 1 call to warnings::import
52326µs225µs
# spent 15µs (4+11) within ExtUtils::MM::BEGIN@5 which was called: # once (4µs+11µs) by IPC::Cmd::can_run at line 5
use ExtUtils::MakeMaker::Config;
# spent 15µs making 1 call to ExtUtils::MM::BEGIN@5 # spent 11µs making 1 call to ExtUtils::MakeMaker::Config::import
6
71300nsour $VERSION = '7.64';
81600ns$VERSION =~ tr/_//d;
9
10186µsrequire ExtUtils::Liblist;
111500nsrequire ExtUtils::MakeMaker;
12113µsour @ISA = qw(ExtUtils::Liblist ExtUtils::MakeMaker);
13
14=head1 NAME
15
16ExtUtils::MM - OS adjusted ExtUtils::MakeMaker subclass
17
18=head1 SYNOPSIS
19
20 require ExtUtils::MM;
21 my $mm = MM->new(...);
22
23=head1 DESCRIPTION
24
25B<FOR INTERNAL USE ONLY>
26
27ExtUtils::MM is a subclass of L<ExtUtils::MakeMaker> which automatically
28chooses the appropriate OS specific subclass for you
29(ie. L<ExtUtils::MM_Unix>, etc...).
30
31It also provides a convenient alias via the MM class (I didn't want
32MakeMaker modules outside of ExtUtils/).
33
34This class might turn out to be a temporary solution, but MM won't go
35away.
36
37=cut
38
39{
40 # Convenient alias.
41 package MM;
4214µs our @ISA = qw(ExtUtils::MM);
43 sub DESTROY {}
44}
45
461300nssub _is_win95 {
47 # miniperl might not have the Win32 functions available and we need
48 # to run in miniperl.
49 my $have_win32 = eval { require Win32 };
50 return $have_win32 && defined &Win32::IsWin95 ? Win32::IsWin95()
51 : ! defined $ENV{SYSTEMROOT};
52}
53
541200nsmy %Is = ();
5512µs$Is{VMS} = $^O eq 'VMS';
561500ns$Is{OS2} = $^O eq 'os2';
571300ns$Is{MacOS} = $^O eq 'MacOS';
581300nsif( $^O eq 'MSWin32' ) {
59 _is_win95() ? $Is{Win95} = 1 : $Is{Win32} = 1;
60}
6117µs11µs$Is{UWIN} = $^O =~ /^uwin(-nt)?$/;
# spent 1µs making 1 call to ExtUtils::MM::CORE:match
621300ns$Is{Cygwin} = $^O eq 'cygwin';
6311µs$Is{NW5} = $Config{osname} eq 'NetWare'; # intentional
6412µs1900ns$Is{BeOS} = ($^O =~ /beos/i or $^O eq 'haiku');
# spent 900ns making 1 call to ExtUtils::MM::CORE:match
651300ns$Is{DOS} = $^O eq 'dos';
661200nsif( $Is{NW5} ) {
67 $^O = 'NetWare';
68 delete $Is{Win32};
69}
701300ns$Is{VOS} = $^O eq 'vos';
711400ns$Is{QNX} = $^O eq 'qnx';
721300ns$Is{AIX} = $^O eq 'aix';
731900ns$Is{Darwin} = $^O eq 'darwin';
741300ns$Is{OS390} = $^O eq 'os390';
75
7612µs$Is{Unix} = !grep { $_ } values %Is;
77
7813µsmap { delete $Is{$_} unless $Is{$_} } keys %Is;
7911µs12µs_assert( keys %Is == 1 );
# spent 2µs making 1 call to ExtUtils::MM::_assert
801500nsmy($OS) = keys %Is;
81
82
831500nsmy $class = "ExtUtils::MM_$OS";
84129µseval "require $class" unless $INC{"ExtUtils/MM_$OS.pm"}; ## no critic
# spent 93µs executing statements in string eval
851200nsdie $@ if $@;
86139µsunshift @ISA, $class;
87
88
89
# spent 2µs within ExtUtils::MM::_assert which was called: # once (2µs+0s) by IPC::Cmd::can_run at line 79
sub _assert {
901300ns my $sanity = shift;
911200ns die sprintf "Assert failed at %s line %d\n", (caller)[1,2] unless $sanity;
9212µs return;
93}
 
# spent 2µs within ExtUtils::MM::CORE:match which was called 2 times, avg 1µs/call: # once (1µs+0s) by IPC::Cmd::can_run at line 61 # once (900ns+0s) by IPC::Cmd::can_run at line 64
sub ExtUtils::MM::CORE:match; # opcode