How to get memory usage of s script, among 100 of scripts

I work in a small team which has inherited a old game from a new fromer roblox dev as a form of continuing it’s legacy.

The code is expectedly old and unoptimized, in fact so unoptimized that we have to do a soft-restart of the server very often. There’s more than 500 scripts we may have look though so I’m for help here.

How can i use roblox’s current tools in order to pin-point the problematic scripts and patch memory leaks?

Thanks