1)启动Instrument,左侧选项中选择Memory,右侧选项选择Activity Monitor,点击底部的Choose

Instrument查内存占用情况_llp



2)  在顶部左上角的All Processes中choose Target,比如Paike


Instrument查内存占用情况_llp_02


3)选择顶部左上角的红色启动按钮,程序开始运行



4)不断操作程序,就可以观察到结果

Instrument查内存占用情况_llp_03