1、下载地址:https://www.eclipse.org/mat/downloads.php
如下图所示选择mac版本
2、下载完毕后双击文件如果如下报错
java.lang.IllegalStateException: The platform metadata area could not be written: /private/var/folders/rv/bhc3zs555pbb7h991s7ryzhc0000gn/T/AppTranslocation/1BAA3625-A085-4649-BE68-F859F0268F4D/d/mat.app/Contents/MacOS/workspace/.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:70)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:138)
at org.eclipse.core.internal.prefere