- or download this
my( $avail, $total )= MemoryStatus( "MB",
"AvailPageFile", "TotalPageFile" );
- or download this
my( $avail, $total )= MemoryStatus( "MB",
[ "AvailPageFile", "TotalPageFile" ] );
- or download this
my $hMem= MemoryStatus( "K" );
my $load= $hMem->{MemoryLoad};
- or download this
perl -de 0
DB<1> use Win32::MemoryInfo "MemoryStatus"
...
'AvailPageFile' => 3026
'TotalPageFile' => 32768
[...]
- or download this
my @fieldNames=
qw( MemoryLoad TotalPhys AvailPhys TotalPageFile
...
my $hFields= {};
@$hFields{@fieldNames}= @fieldValues;
return @_ ? @$hFields{@_} : $hFields;