标签: iphone objective-c xcode debugging instruments
我有一个大对象图。它从一个根对象开始,其属性是由其他对象组成的数组,依此类推。
我想知道这个图表吃多少内存。让Xcode能够通过根对象向我显示这些信息的任何工具(也许就像我所有对象的树一样)?
或者也许可以在运行时以编程方式计算其大小?
答案 0 :(得分:1)
使用Run -> Run with Performance Tool -> Object Allocation运行项目来尝试使用Instruments。
Run -> Run with Performance Tool -> Object Allocation