Select Window -> Package Manager
select the small plus sign + -> the third
Enter com.unity.memoryprofiler in the pop-up input box
and click Add on the right side of the input box to install it.
At this point, you can see Memory Profiler in the menu bar
at a glance, which is very convenient