Raku module - Provides Memory Usage statistics.
- GNU/Linux by /proc/meminfo
- Win32 by Kernel32/GlobalMemoryStatusEx function Native call
zef update
zef install System::Stats::MEMUsage
use v6;
use System::Stats::MEMUsage;
my %mem = MEM_Usage();
say "Total: %mem<total> bytes";
say " Free: %mem<free> bytes";
say " Used: %mem<used> bytes";
say "Usage: %mem<usage-percent>%";