开发者

How to know in Xcode how much memory occupied by my object graph?

开发者 https://www.devze.com 2022-12-25 02:44 出处:网络
I have one big object graph. It begins from one root object and its properties are arrays which consist of other objects and so on.

I have one big object graph. It begins from one root object and its properties are arrays which consist of other objects and so on.

I want to know how much memory is eating by this graph at all. Have Xcode any instrument that will show me this information by root object (maybe something like tree of all my objects)?

Or maybe it is possible to calculate its size programmat开发者_如何学Goically at runtime?


Try Instruments by running your project with Run -> Run with Performance Tool -> Object Allocation.

0

精彩评论

暂无评论...
验证码 换一张
取 消