以调试mode执行代码到line 16,点击icon “Take heap snapshot.”生成第二个snapshot,从dropdown list里选择"Objects allocated between Snapshot 3 and Snapshot 4":在Summary里用变量名array 做filter, 即可找出在snapshot3 和snapshot4之间内存占用最高的变量arra:
2022-05-25 08:08:38
以调试mode执行代码到line 16,点击icon “Take heap snapshot.”生成第二个snapshot,从dropdown list里选择"Objects allocated between Snapshot 3 and Snapshot 4":在Summary里用变量名array 做filter, 即可找出在snapshot3 和snapshot4之间内存占用最高的变量arra: