How can i trace memory consumed by an object in its life time when i am testing my application on device? [e.g.: without any instruments if possible]
+1
A:
One way to accomplish this is to use NSKeyArchiver. You can serialize your object out and then determine it's size. This will would limit the type of data your object can hold. You can check out the docs here:
logancautrell
2010-06-08 15:55:45
The archived form of an object may be larger or smaller than the unarchived form. It is at best, an estimate.
rpetrich
2010-06-08 17:33:36
Agreed, using instruments is the best way to track objects life cycles.
logancautrell
2010-06-09 14:42:39