Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsVMStatisticsMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Process MBS Win Plugin 10.3 No Yes No Yes, Windows only No
Function: Creates a new statistics object with current values.
Example:
// show values in a listbox:
dim w as new WindowsVMStatisticsMBS

list.AddRow "Pagesize: "+format(w.Pagesize,"0")
list.AddRow "MemoryLoad: "+format(w.MemoryLoad,"0")
list.AddRow "AvailablePageFileMemory: "+format(w.AvailablePageFileMemory,"0")
list.AddRow "AvailablePhysicalMemory: "+format(w.AvailablePhysicalMemory,"0")
list.AddRow "AvailableVirtualMemory: "+format(w.AvailableVirtualMemory,"0")
list.AddRow "TotalPageFileMemory: "+format(w.TotalPageFileMemory,"0")
list.AddRow "TotalPhysicalMemory: "+format(w.TotalPhysicalMemory,"0")
list.AddRow "TotalVirtualMemory: "+format(w.TotalVirtualMemory,"0")

Feedback, Comments & Corrections

GetWindowsVMStatisticsMBS as WindowsVMStatisticsMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Process MBS Win Plugin No Yes No Yes, Windows only No
Function: Returns information about the current memory status on Windows.
Example:
dim w as WindowsVMStatisticsMBS

w=GetWindowsVMStatisticsMBS
if w<>nil then

list.AddRow format(w.pagesize,"0")
list.AddRow format(w.memoryLoad,"0")
list.AddRow format(w.availablePageFileMemory,"0")
list.AddRow format(w.availablePhysicalMemory,"0")
list.AddRow format(w.availableVirtualMemory,"0")
list.AddRow format(w.totalPageFileMemory,"0")
list.AddRow format(w.totalPhysicalMemory,"0")
list.AddRow format(w.totalVirtualMemory,"0")

else

msgBox "No Windows memory statistics..."
quit
end if

Some examples using this method:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins