blib/lib/System/CPU.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 24 | 83.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
150 | 1 | 0 | 1 | @out and $out[0] =~ /CPU:\s*(.*)/i |
255 | 3 | 0 | 10 | -f "/proc/cpuinfo" and open my $fh, "<", "/proc/cpuinfo" |
262 | 5 | 3 | 2 | not @physical and @cores |
line | l | !l | condition |
---|---|---|---|
169 | 11 | 5 | $name || '' |
236 | 2 | 2 | $ncpu || undef |
267 | 5 | 3 | keys %hash || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
199 | 2 | 2 | 0 | $cores ||= $cpus |
268 | 5 | 3 | 0 | &sum(values %hash) || $cpus |
276 | 2 | 1 | 1 | $arch || _uname_p() |