How to get performance metrics in the editor with Tool scripts?

Godot Version

4.4.1.stable.mono

Question

I am currently using Tool scripts within the editor to see real-time changes and run real-time logic as I manipulate scenes within the editor. I’m trying to get performance metrics about how efficiently those scripts are running. Is there a way to get FPS, memory usage, etc in the editor itself? I can’t use the debugger monitors because I’m not running the project, I am using tool scripts in the editor instance.

What’s stopping you to run those scripts with the project and profile them?

You can access the monitors with Performance.get_monitor() but the editor only updates when something changes so you may get wrong values unless you enable EditorSettings.interface/editor/update_continuously