Publisher
pumpkinpaul
Managed Memory Monitor
Analyize memory allocations and garbage collections generated by managed code (C#).
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Managed Memory Monitor for Godot
A managed memory monitor add-on for Godot 4.x projects.
Displays managed memory performance information in a Godot project during gameplay. Can be used when running from the editor and in exported projects.
Features
- Features compact and full display modes, with the compact mode only displaying Garbage Collections.
- Works with the Forward+, Mobile and Compatibility rendering methods.
- Works with 2D and 3D projects.
- Works when running the project from the editor, but also in exported projects (debug and release).
Why use this monitor?
- Analyize memory allocations and garbage collections generated by managed code (C#).
Installation
Using the Asset Library
- Open the Godot editor.
- Navigate to the AssetLib tab at the top of the editor and search for "managed memory monitor".
- Install the Managed Memory Monitor plugin. Keep all files checked during installation.
- In the editor, open Project > Project Settings, go to Plugins and enable the Managed Memory Monitor plugin.
Manual installation
Manual installation lets you use pre-release versions of this add-on by
following its main branch.
- Clone this Git repository:
git clone https://github.com/PumpkinPaul/godot-managed-memory-monitor.git
Usage
Press F4 while the project is running. This cycles between no memory monitor, a compact monitor (only Garbage Collections are visible) and a full monitor.
The key to cycle the debug menu is set to F4 by default. This can be
changed by setting the cycle_managed_memory_monitor action in the Input Map to a different
key. This action is not created by the plugin in the editor, so you will have to
create it in the Project Settings if you wish to override the key.
To toggle the debug menu from code, use:
ManagedMemoryMonitor.style = ManagedMemoryMonitor.DisplayStyle.NONEto hide the monitor.ManagedMemoryMonitor.style = ManagedMemoryMonitor.DisplayStyle.VISIBLE_COMPACTto show the compact monitor.ManagedMemoryMonitor.style = ManagedMemoryMonitor.DisplayStyle.VISIBLE_DETAILEDto show the detailed monitor.
License
Copyright © 2023-present Paul Cunningham and contributors
Unless otherwise specified, files in this repository are licensed under the MIT license. See LICENSE for more information.
Credits
Inspiration:
- Debug Menu by Hugo Locurcio and contributors