Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/Darwin Resource Usage


Required plugins for this example: MBS MacCF Plugin

Last modified Sun, 17th Mar 2012.

You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /MacCF/Darwin Resource Usage

Download this example: Darwin Resource Usage.zip

Project "Darwin Resource Usage.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() update End EventHandler
End Control
Protected Sub update() List.DeleteAllRows dim d as DarwinResourceUsageMBS = GetDarwinResourceUsageMBS List.AddRow "BlockInputOperations: "+str(d.BlockInputOperations) List.AddRow "BlockOutputOperations: "+str(d.BlockOutputOperations) List.AddRow "IntegralMaxResidentSetSize: "+str(d.IntegralMaxResidentSetSize) List.AddRow "IntegralSharedTextMemorySize: "+str(d.IntegralSharedTextMemorySize) List.AddRow "IntegralUnsharedDataSize: "+str(d.IntegralUnsharedDataSize) List.AddRow "IntegralUnsharedStackSize: "+str(d.IntegralUnsharedStackSize) List.AddRow "InvoluntaryContextSwitches: "+str(d.InvoluntaryContextSwitches) List.AddRow "MessagesReceived: "+str(d.MessagesReceived) List.AddRow "MessagesSent: "+str(d.MessagesSent) List.AddRow "PageFaults: "+str(d.PageFaults) List.AddRow "PageReclaims: "+str(d.PageReclaims) List.AddRow "SignalsReceived: "+str(d.SignalsReceived) List.AddRow "Swaps: "+str(d.Swaps) List.AddRow "SystemTimeUsed: "+str(d.SystemTimeUsed) List.AddRow "UserTimeUsed: "+str(d.UserTimeUsed) List.AddRow "VoluntaryContextSwitches: "+str(d.VoluntaryContextSwitches) End Sub
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

See also:

Download this example: Darwin Resource Usage.zip

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


The biggest plugin in space...