System::Stats::MEMUsage

Provides Memory Usage statistics

System::Stats::MEMUsage

Raku module - Provides Memory Usage statistics.

OS Supported:

  • GNU/Linux by /proc/meminfo

  • Win32 by Kernel32/GlobalMemoryStatusEx function Native call

Installing the module

zef update
zef install System::Stats::MEMUsage

Example Usage:

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>%";

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.