line |
true |
false |
branch |
146
|
9 |
44 |
if $^O =~ /linux|android/i |
147
|
7 |
37 |
if $^O =~ /bsd|darwin|dragonfly/i |
148
|
6 |
31 |
if $^O =~ /osf|solaris|sunos|svr5|sco/i |
149
|
10 |
21 |
if $^O =~ /aix/i |
150
|
4 |
17 |
if $^O =~ /gnu/i |
151
|
4 |
13 |
if $^O =~ /haiku/i |
152
|
4 |
9 |
if $^O =~ /hp-?ux/i |
153
|
4 |
5 |
if $^O =~ /irix/i |
155
|
4 |
1 |
if $^O =~ /mswin|mingw|msys|cygwin/i |
168
|
4 |
14 |
if ($^O =~ /linux|android/i) { } |
|
4 |
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) { } |
172
|
2 |
2 |
unless $name |
177
|
1 |
1 |
if $out =~ /:\s*(.*)/ |
180
|
1 |
1 |
if @out and $out[0] =~ /CPU:\s*(.*)/i |
183
|
2 |
0 |
if $out =~ /:\s*(?:")?(.*?)(?:")?\s*$/m |
186
|
1 |
1 |
if ($out =~ /processor model:\s*\d*\s*(.+?)$/im) { } |
|
1 |
0 |
elsif ($out =~ /\s*\d*\s*(.+(?:MHz|GHz).+)$/m) { } |
195
|
16 |
1 |
unless ($opt{'raw'}) |
196
|
11 |
5 |
if $name |
197
|
11 |
5 |
if $name |
204
|
3 |
4 |
if $^O =~ /linux|android|bsd|darwin|dragonfly|gnu|osf|solaris|sunos|svr5|sco|hp-?ux/i |
205
|
1 |
3 |
if $^O =~ /aix|irix/i |
206
|
1 |
2 |
if $^O =~ /haiku/i |
207
|
1 |
1 |
if $^O =~ /mswin|mingw|msys|cygwin/i |
214
|
0 |
6 |
if (-x '/usr/sbin/psrinfo') { } |
216
|
0 |
0 |
if $count |
219
|
2 |
4 |
if @output |
226
|
5 |
2 |
$prof ? : |
227
|
2 |
5 |
if $prof and $prof =~ /Number of (?:Processors|CPUs): (\d+)/i |
229
|
4 |
3 |
unless $cpus |
230
|
2 |
5 |
unless $cpus |
244
|
4 |
6 |
if (@output) |
246
|
2 |
2 |
if $1 |
248
|
8 |
2 |
unless ($ncpu) |
250
|
4 |
4 |
if (@output) { } |
254
|
2 |
2 |
if @output |
263
|
2 |
2 |
if @output |
275
|
2 |
2 |
if @out |
282
|
2 |
2 |
if @output |
288
|
10 |
3 |
if (-f "/proc/cpuinfo" and open my $fh, "<", "/proc/cpuinfo") |
290
|
50 |
923 |
if /^processor\s*:/i |
291
|
41 |
932 |
if /^physical id\s*:\s*(\d+)/i |
292
|
45 |
928 |
if /^cpu cores\s*:\s*(\d+)/i |
293
|
33 |
940 |
if /^model name\s*:\s*(.*)/i |
295
|
2 |
8 |
if not @physical and @cores |
296
|
3 |
5 |
unless @cores |
299
|
41 |
0 |
$_ < scalar @cores ? : |