Sys-MemInfo
view release on metacpan or search on metacpan
arch/aix.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include "arch/functions.h"
#include <stdio.h>
#include <unistd.h>
#include <libperfstat.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
u_longlong_t
totalmem()
PROTOTYPE: DISABLE
CODE:
perfstat_memory_total_t meminfo;
arch/bsd.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include "arch/functions.h"
#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
unsigned long long ret = 0;
arch/darwin.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include "arch/functions.h"
#include <stdio.h>
#include <mach/mach_host.h>
#include <mach/host_info.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
static int page_size = 0;
vm_statistics_data_t vm_info;
mach_msg_type_number_t info_count = HOST_VM_INFO_COUNT;
arch/freebsd.xs view on Meta::CPAN
#include "arch/functions.h"
#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <vm/vm_param.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
unsigned long long ret = 0;
arch/hpux.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include "arch/functions.h"
#include <sys/param.h>
#include <sys/pstat.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
struct pst_static pst_s;
arch/irix.xs view on Meta::CPAN
#include <stdio.h>
#include <unistd.h>
#include <sys/sysmp.h>
#include <sys/stat.h>
#include <sys/swap.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
static int pagesize = 0;
arch/linux.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include "arch/functions.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/sysinfo.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
const long long pagetotal = sysconf (_SC_PHYS_PAGES);
arch/sco.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include <stdio.h>
#include <unistd.h>
#include <sys/sysi86.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
const long long pages = sysconf (_SC_USEABLE_MEMORY);
arch/solaris.xs view on Meta::CPAN
#include "arch/functions.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/swap.h>
#include <vm/anon.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
const long long pagetotal = sysconf (_SC_PHYS_PAGES);
arch/tru64.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include <sys/sysinfo.h>
#include <sys/table.h>
#include <machine/hal_sysinfo.h>
#include <mach.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
long totalmem;
arch/win32.xs view on Meta::CPAN
MODULE = Sys::MemInfo PACKAGE = Sys::MemInfo
#include "arch/functions.h"
#include <stdio.h>
#include <windows.h>
void
availkeys()
PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(_totalmem, strlen(_totalmem))));
XPUSHs(sv_2mortal(newSVpv(_freemem, strlen(_freemem))));
XPUSHs(sv_2mortal(newSVpv(_totalswap, strlen(_totalswap))));
XPUSHs(sv_2mortal(newSVpv(_freeswap, strlen(_freeswap))));
double
totalmem()
PROTOTYPE: DISABLE
CODE:
#ifdef OLDWIN
( run in 1.630 second using v1.01-cache-2.11-cpan-5511b514fd6 )