blib/lib/Sys/Statistics/Linux/MemStats.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 12 | 58.3 |
line | true | false | branch |
---|---|---|---|
109 | 0 | 2 | ref $_[0] ? : |
131 | 2 | 0 | $$file{'path'} ? : |
132 | 0 | 2 | unless open my $fh, '<', $filename |
169 | 30 | 54 | if ($line =~ /^((?:Mem|Swap)(?:Total|Free)|Buffers|Cached|SwapCached|Active|Inactive| Dirty|Writeback|Mapped|Slab|Commit(?:Limit|ted_AS)):\s*(\d+)/x) { } |
0 | 54 | elsif ($line =~ /^Inact_(?:dirty|laundry|clean):\s*(\d+)/) { } | |
188 | 0 | 2 | if (not $meminfo{'swaptotal'}) { } |