Displays some heap stats, updated during garbage collection. If, when a VM is selected, the VM Heap view says that heap updates are not enabled, click the "Show heap updates" button, located in the top-left toolbar. Back in the VM Heap view, click Cause GC to perform garbage collection and update the heap stats.在devices 栏里面 点击一下update heap 按钮就行了。如下图所示, 点击了以后不会马上有,等下一次 gc 回收旧有了
在run的run configuration里,有个argument选项,在vm argument输入框里输入: -Xms256m-Xmx1024m 则可设定jvm的heap size最小为256m,最大为1024m
点击了以后不会马上有,等下一次 gc 回收旧有了
这时上面的update heap 图标呈灰色不可用状态。不知道我说的对不对,因为我遇到的就是这种情况,无法查看当前设备进程的heap .求解!!!!