line |
true |
false |
branch |
116
|
9 |
43 |
if $^O =~ /linux|android/i |
117
|
6 |
37 |
if $^O =~ /bsd|darwin|dragonfly/i |
118
|
6 |
31 |
if $^O =~ /osf|solaris|sunos|svr5|sco/i |
119
|
10 |
21 |
if $^O =~ /aix/i |
120
|
4 |
17 |
if $^O =~ /gnu/i |
121
|
4 |
13 |
if $^O =~ /haiku/i |
122
|
4 |
9 |
if $^O =~ /hp-?ux/i |
123
|
4 |
5 |
if $^O =~ /irix/i |
125
|
4 |
1 |
if $^O =~ /mswin|mingw|msys|cygwin/i |
138
|
4 |
13 |
if ($^O =~ /linux|android/i) { } |
|
3 |
10 |
elsif ($^O =~ /bsd|darwin|dragonfly/i) { } |
|
1 |
9 |
elsif ($^O =~ /mswin|mingw|msys|cygwin/i) { } |
|
2 |
7 |
elsif ($^O =~ /aix/i) { } |
|
2 |
5 |
elsif ($^O =~ /irix/i) { } |
|
2 |
3 |
elsif ($^O =~ /haiku/i) { } |
|
2 |
1 |
elsif ($^O =~ /hp-?ux/i) { } |
142
|
2 |
1 |
unless $name |
147
|
1 |
1 |
if $out =~ /:\s*(.*)/ |
150
|
1 |
1 |
if @out and $out[0] =~ /CPU:\s*(.*)/i |
153
|
2 |
0 |
if $out =~ /:\s*(?:")?(.*?)(?:")?\s*$/m |
156
|
1 |
1 |
if ($out =~ /processor model:\s*\d*\s*(.+?)$/im) { } |
|
1 |
0 |
elsif ($out =~ /\s*\d*\s*(.+(?:MHz|GHz).+)$/m) { } |
165
|
15 |
1 |
unless ($opt{'raw'}) |
166
|
10 |
5 |
if $name |
167
|
10 |
5 |
if $name |
174
|
2 |
4 |
if $^O =~ /linux|android|bsd|darwin|dragonfly|gnu|osf|solaris|sunos|svr5|sco|hp-?ux/i |
175
|
1 |
3 |
if $^O =~ /aix|irix/i |
176
|
1 |
2 |
if $^O =~ /haiku/i |
177
|
1 |
1 |
if $^O =~ /mswin|mingw|msys|cygwin/i |
184
|
0 |
6 |
if (-x '/usr/sbin/psrinfo') { } |
186
|
0 |
0 |
if $count |
189
|
2 |
4 |
if @output |
196
|
4 |
2 |
unless $cpus |
197
|
2 |
4 |
unless $cpus |
211
|
4 |
6 |
if (@output) |
213
|
2 |
2 |
if $1 |
215
|
8 |
2 |
unless ($ncpu) |
217
|
4 |
4 |
if (@output) { } |
221
|
2 |
2 |
if @output |
230
|
2 |
2 |
if @output |
242
|
2 |
2 |
if @out |
249
|
2 |
2 |
if @output |
255
|
10 |
3 |
if (-f "/proc/cpuinfo" and open my $fh, "<", "/proc/cpuinfo") |
257
|
50 |
923 |
if /^processor\s*:/i |
258
|
41 |
932 |
if /^physical id\s*:\s*(\d+)/i |
259
|
45 |
928 |
if /^cpu cores\s*:\s*(\d+)/i |
260
|
33 |
940 |
if /^model name\s*:\s*(.*)/i |
262
|
2 |
8 |
if not @physical and @cores |
263
|
3 |
5 |
unless @cores |
266
|
41 |
0 |
$_ < scalar @cores ? : |