Sorting through memory use

Hello!, I have created an editor tool that will allow users to filter all objects in the current scene in to lists depending on the components they have, what would make this tool extra powerful would also be the ability to sort these lists by order of memory consumption, anyone know of a good way to do this?

Profiler.GetRuntimeMemorySizeLong isn’t perfect but pretty good

EditorUtility.FormatBytes is also helpful

1 Like

Excellent! Thank you!