Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/Darwin Resource Usage
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 Resource Usage
This example is the version from Sun, 17th Mar 2012.
Project "Darwin Resource Usage.rbp"
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:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins