Ark2000 / PankuConsole

Feature-packed real-time debugging toolkit for Godot Engine.
https://k2kra.xyz/PankuConsole/
MIT License
997 stars 38 forks source link

Memory Leak detection / System Monitoring Alerts #146

Open Dustin00 opened 9 months ago

Dustin00 commented 9 months ago

Run-time memory leak detection could trigger alerts.

Orphan nodes and other things can leak memory and be detected to tell the developer when their code has taken a misstep.

I think for this one monitor value, you'd want 3 settings:

Using Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT) we can check against the threshold to make the alert.

The alert should just be a log entry, I think. If you had a pop-up option, you would close it and immediately get the pop-up again, most likely, making things impossible to deal with. Or there could be a pop-up, but it can only happen once?

If feeling super industrious, this could be a new window that allows for min/max tolerance values for any/all Monitor values.