Platforms to show: All Mac Windows Linux Cross-Platform

DarwinHostVMStatisticsMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Process MBS MacCF Plugin 24.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries memory host statistics for macOS and iOS.
Example
Var d As New DarwinHostVMStatisticsMBS

Var FreeMB As Integer = d.FreeCount * d.Pagesize / 1024 / 1024
Var ActiveMB As Integer = d.ActiveCount * d.Pagesize / 1024 / 1024
Var InactiveMB As Integer = d.InactiveCount * d.Pagesize / 1024 / 1024
Var WiredMB As Integer = d.WireCount * d.Pagesize / 1024 / 1024
Var CompressedMB As Integer = d.CompressorPageCount * d.Pagesize / 1024 / 1024

Var Sum As Integer = FreeMB + ActiveMB + WiredMB + InactiveMB + CompressedMB

MessageBox _
"Free: " + FreeMB.ToString+EndOfLine+_
"Active: " + ActiveMB.ToString+EndOfLine+_
"Inactive: " + InactiveMB.ToString+EndOfLine+_
"Wired: " + WiredMB.ToString+EndOfLine+_
"Compressed: " + CompressedMB.ToString+EndOfLine+_
"Total: "+Sum.ToString

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


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


DarwinGroupMBS   -   DarwinIFStatInterfaceMBS


The biggest plugin in space...