Platforms to show: All Mac Windows Linux Cross-Platform

DarwinVMStatisticsMBS.ActivePages as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The total number of pages currently in use and pageable.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.ActivePages)
Notes: (Read only property)
class DarwinVMStatisticsMBS
class, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Holds information about the current Mac OS X memory status.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.pageins)+" page ins"
DarwinVMStatisticsMBS.CowFaults as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of faults that caused a page to be copied (generally caused by copy-on-write faults).
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.CowFaults)
Notes: (Read only property)
DarwinVMStatisticsMBS.CPUTicksIdle as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of time slices used by the Idle process.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.CPUTicksIdle)
Notes:
Calculate deltas like in the example to see usage of CPU time.
(Read only property)
DarwinVMStatisticsMBS.CPUTicksNice as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of time slices used by the task switcher process.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.CPUTicksNice)
Notes:
Calculate deltas like in the example to see usage of CPU time.
(Read only property)
DarwinVMStatisticsMBS.CPUTicksSystem as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of time slices used by the system processes.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.CPUTicksSystem)
Notes:
Calculate deltas like in the example to see usage of CPU time.
(Read only property)
DarwinVMStatisticsMBS.CPUTicksUser as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of time slices used by the user application processes.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.CPUTicksUser)
Notes:
Calculate deltas like in the example to see usage of CPU time.
(Read only property)
DarwinVMStatisticsMBS.Faults as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of times the "vm_fault" routine has been called.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.Faults)
Notes: (Read only property)
DarwinVMStatisticsMBS.FreePages as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The total number of free pages in the system.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.FreePages)
Notes: (Read only property)
GetDarwinVMStatisticsMBS as DarwinVMStatisticsMBS
global method, Process, MBS REALbasic MacOSX Plugin (Darwin), Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns information about the current memory status on Mac OS X.
Example:
dim d as DarwinVMStatisticsMBS

d=GetDarwinVMStatisticsMBS

if d=nil then
msgBox "No Darwin running :-("
quit
else
dim lines(-1) as string

lines.Append format(d.pageins,"0")+" pageins"
lines.Append format(d.pageouts,"0")+" pageouts"
lines.Append format(d.pagesize,"0")+" pagesize"
lines.Append format(d.freepages,"0")+" freepages"
lines.Append format(d.activepages,"0")+" activepages"
lines.Append format(d.inactivepages,"0")+" inactivepages"
lines.Append format(d.wiredpages,"0")+" wiredpages"
lines.Append format(d.zerofillpages,"0")+" zerofillpages"
lines.Append format(d.reactivations,"0")+" reactivations"
lines.Append format(d.faults,"0")+" faults"
lines.Append format(d.cowfaults,"0")+" cowfaults"
lines.Append format(d.lookups,"0")+" lookups"
lines.Append format(d.hits,"0")+" hits"

MsgBox Join(lines,EndOfLine)
end if

Some examples using this method:

DarwinVMStatisticsMBS.Hits as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The hit count.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.Hits)
Notes: (Read only property)
DarwinVMStatisticsMBS.InactivePages as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The total number of pages on the inactive list.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.InactivePages)
Notes: (Read only property)
DarwinVMStatisticsMBS.Lookups as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The count of lookups.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.Lookups)
Notes: (Read only property)
DarwinVMStatisticsMBS.PageIns as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of requests for pages from a pager (such as the inode pager).
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.pageins)
Notes: (Read only property)
DarwinVMStatisticsMBS.PageOuts as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of pages that have been paged out.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.PageOuts)
Notes: (Read only property)
DarwinVMStatisticsMBS.Pagesize as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The size of one memory page in memory.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.Pagesize)
Notes:
On PowerPC CPUs, it should be 4096 Bytes.
(Read only property)
DarwinVMStatisticsMBS.Reactivations as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: the total number of pages that have been moved from the inactive list to the active list (reactivated).
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.Reactivations)
Notes: (Read only property)
DarwinVMStatisticsMBS.WiredPages as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The total number of pages wired down. That is, pages that cannot be paged out.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.WiredPages)
Notes: (Read only property)
DarwinVMStatisticsMBS.ZeroFillPages as integer
property, Process, MBS REALbasic MacOSX Plugin (Darwin), class DarwinVMStatisticsMBS, Console safe, Plugin version: 2.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The total number of pages that have been zero-filled on demand.
Example:
dim d as DarwinVMStatisticsMBS = GetDarwinVMStatisticsMBS
MsgBox str(d.ZeroFillPages)
Notes: (Read only property)

The items on this page are in the following plugins: MBS REALbasic MacOSX Plugin.




Links
MBS REAL studio PDF Plugins - Pfarrgemeinde St. Arnulf Nickenich