Stat unit

I am trying to optimize my game, to make it run faster in the executable. I saw a video tutorial to use “stat unit”, to see where most of the memory is being used. I cannot figure out how to bring it up. Can anyone tell me how to bring up the “stat unit” command? Sorry, I am quite the beginner.

Thank you.

I guess it turns out I need to open the console to do that. Now trying to figure out how to do that.

I figured it out. I press Play on my game, tap the tilda key, type in “stat unit”, then press Enter.