MV SDJB_RuntimeDiagnostics

PluginName: SDJB_RuntimeDiagnostics
Author: ShadowDragon

I built a RunTime Diagnostic plugin and worked on and off and time from time.
so it isn't really perfect at this time, but do my best.

while it may be helpful to find out which event or which scene causes lag (see image below)
runtimeLog.png


For plugin dev's, or game dev's, this may prove helpful to see what actually happens behind the scene.
it's not perfect, and not done yet, as its also difficult to improve (specially for me), but I made it as
accurate for what I can tell.

understanding them can find what causes it.

The plugin is plug and play and is standalone and could be named anything.

I don't have Terms or know if it work in MZ as well or not.
but if you want to help improve, add features, know what it currently does, you free to
modify for personal use.

you may however send me the modified version which I can look into it, and may update or alter
before update the current version.

Feel free to leave suggestion and feedback, but DO NOT SHARE or RE-DESTRIBUTE the plugin anywhere.
DO NOT remove my header signature (renaming is fine for your own).

place the plugin at the bottom of your list, DO NOT include it in your deployment game (or demo's).

This is also my first tool and probably the only tool I release.

No AI is used to built this plugin.
Is that screenshot from your plugin? It looks fairly similar to the built-in profiler… but I suppose there could be an advantage to being able to profile a release build.
Is that screenshot from your plugin? It looks fairly similar to the built-in profiler… but I suppose there could be an advantage to being able to profile a release build.
its from my demo where I test plugins, so those are reflected on those.

I don't know the built-in profiler though or how it looks like.
as I just use the core, see what I can find...

there is a Frame Spike you can see, but I'm unable to find out which part
exactly is doing this one.

also, I want to see if I can target it on a deeper level, to check which scene is
overridden, which is aliased, which causes problem, but I have no idea how
to go around this part yet.

so it shows the basics and most visible ones (can comment some out if needed)
so I can only target the events, see which one exactly causes lags or spikes
during the run, than investigate that event to fix.

that is also a bit of the goal for debugging it easier if not faster.
The only way to detect aliasing would be to put your plugin right at the top of the list and save a copy of all the original methods somewhere… which sounds kind of crazy, but is probably doable since those methods should be enumerable on the prototypes.
I can look into it, but had another idea to checks its "hasProperty" of the fuction
and reads the .call count?

for now, I got rough sketches untested of not really need of it,
but save idea's when it is required, but I think the base can give a good
inside what your events are doings or what time they load and avoid
spikes on map that causes lag during development.

but I improve it better, eliminate the bottleneck I still have inside,
but its annoying the right source that I need, but at least got a good view
whats going on though =)

Original thread: https://forums.rpgmakerweb.com/threads/sdjb_runtimediagnostics.183431/