Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/Darwin VM Statistics
Function:
Required plugins for this example: MBS MacCF Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCF/Darwin VM Statistics
This example is the version from Sun, 17th Mar 2012.
Project "Darwin VM Statistics.rbp"
Class Window1 Inherits Window
Control pagesize Inherits Label
ControlInstance pagesize Inherits Label
End Control
Control freepages Inherits Label
ControlInstance freepages Inherits Label
End Control
Control activepages Inherits Label
ControlInstance activepages Inherits Label
End Control
Control inactivepages Inherits Label
ControlInstance inactivepages Inherits Label
End Control
Control wiredpages Inherits Label
ControlInstance wiredpages Inherits Label
End Control
Control zerofillpages Inherits Label
ControlInstance zerofillpages Inherits Label
End Control
Control reactivations Inherits Label
ControlInstance reactivations Inherits Label
End Control
Control pageins Inherits Label
ControlInstance pageins Inherits Label
End Control
Control pageouts Inherits Label
ControlInstance pageouts Inherits Label
End Control
Control faults Inherits Label
ControlInstance faults Inherits Label
End Control
Control cowfaults Inherits Label
ControlInstance cowfaults Inherits Label
End Control
Control lookups Inherits Label
ControlInstance lookups Inherits Label
End Control
Control hits Inherits Label
ControlInstance hits Inherits Label
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
End Control
Control StaticText11 Inherits Label
ControlInstance StaticText11 Inherits Label
End Control
Control StaticText12 Inherits Label
ControlInstance StaticText12 Inherits Label
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
End Control
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() update End EventHandler
End Control
EventHandler Sub Open() update End EventHandler
Sub update() dim d as DarwinVMStatisticsMBS d=GetDarwinVMStatisticsMBS if d=nil then msgBox "No Darwin running :-(" quit else pageins.text=format(d.pageins,"0") pageouts.text=format(d.pageouts,"0") pagesize.text=format(d.pagesize,"0") freepages.text=format(d.freepages,"0") activepages.text=format(d.activepages,"0") inactivepages.text=format(d.inactivepages,"0") wiredpages.text=format(d.wiredpages,"0") zerofillpages.text=format(d.zerofillpages,"0") reactivations.text=format(d.reactivations,"0") faults.text=format(d.faults,"0") cowfaults.text=format(d.cowfaults,"0") lookups.text=format(d.lookups,"0") hits.text=format(d.hits,"0") end if End Sub
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

Feedback, Comments & Corrections

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




Links
MBS FileMaker tutorial videos