Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/GPU Performance Statistics


Required plugins for this example: MBS MacCF Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCF/GPU Performance Statistics

This example is the version from Fri, 23th Apr 2015.

Project "GPU Performance Statistics.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() dim d as Dictionary = IORegistryMBS.PerformanceStatistics if d <> nil then dim gpuCoreUse as Int64 = d.Value("GPU Core Utilization") dim freeVramCount as Int64 = d.Value("vramFreeBytes") dim usedVramCount as Int64 = d.Value("vramUsedBytes") dim sum as int64 = (freeVramCount+usedVramCount) List.AddRow format(gpuCoreUse/1000000000.0, "0%"), Format(freeVramCount/1024.0/1024.0, "0")+" MB of "+Format(sum/1024.0/1024.0, "0")+" MB", Format(usedVramCount / sum, "0%") list.ScrollPosition = list.ListCount else Break end if End EventHandler
End Control
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:

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


The biggest plugin in space...